X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=plugins%2Fssh_secure%2Fssh_secure.zshrc;h=bf5d5237937ffa129b2cc90a2062c4fcc945d03e;hb=5f9db895f246ca1e6f3a7e48f2a9f5cbe031e46d;hp=dbc0eea058b3825dc76c025d43af4af88ac0adb5;hpb=027b6d1a9e9e71c42a33f1ee36a432c88b79c9e7;p=ax-zsh.git diff --git a/plugins/ssh_secure/ssh_secure.zshrc b/plugins/ssh_secure/ssh_secure.zshrc index dbc0eea..bf5d523 100644 --- a/plugins/ssh_secure/ssh_secure.zshrc +++ b/plugins/ssh_secure/ssh_secure.zshrc @@ -4,7 +4,12 @@ # Make sure that "ssh(1)" is installed (( $+commands[ssh] )) || return +# This plugin is optional. +[[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 92 + # Enforce "strict host key checking" -alias ssh="\ssh -o 'StrictHostKeyChecking yes'" -alias sshnew="\ssh -o 'StrictHostKeyChecking no'" -alias sshtmp="\ssh -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile /dev/null'" +alias sshnew='ssh -o "StrictHostKeyChecking no"' +alias sshtmp='ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null"' + +compdef sshnew=ssh +compdef sshtmp=ssh