diff --git a/zsh.d/50-functions.zsh b/zsh.d/50-functions.zsh index 300f445..42eb961 100644 --- a/zsh.d/50-functions.zsh +++ b/zsh.d/50-functions.zsh @@ -22,5 +22,8 @@ autoload -U fancyTerm # repo_char - returns a character based on the type of repo we are in autoload -U repo_char +# repo_char - returns a character based on the type of repo we are in +autoload -U x509 + # vim: set ts=4 sw=4 tw=0 ft=zsh : diff --git a/zsh.d/zshfunctions/x509 b/zsh.d/zshfunctions/x509 index 3b87a68..592fd35 100644 --- a/zsh.d/zshfunctions/x509 +++ b/zsh.d/zshfunctions/x509 @@ -1 +1,5 @@ -openssl x509 -in $1 -noout -text | less +if [ -r "$1" ]; then + openssl x509 -in $1 -noout -text | less +else + echo "x509 " +fi diff --git a/zsh.d/zshfunctions/x509.zwc b/zsh.d/zshfunctions/x509.zwc index 5ce312b..63ae6ab 100644 Binary files a/zsh.d/zshfunctions/x509.zwc and b/zsh.d/zshfunctions/x509.zwc differ