]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/ssh_secure/ssh_secure.zshrc
ssh_secure: "Nicer" quoting, add completion aliases
[ax-zsh.git] / plugins / ssh_secure / ssh_secure.zshrc
index e27010d2a1f8dbde7c567266311c79fa969b95c1..bf5d5237937ffa129b2cc90a2062c4fcc945d03e 100644 (file)
@@ -1,12 +1,15 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # ssh_secure.zshrc: Make SSH operations more secure
 
-[[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 92
-
 # 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