]> arthur.barton.de Git - ax-zsh.git/commitdiff
ssh_secure: "Nicer" quoting, add completion aliases
authorAlexander Barton <alex@barton.de>
Tue, 28 May 2019 15:18:39 +0000 (17:18 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 28 May 2019 15:18:39 +0000 (17:18 +0200)
plugins/ssh_secure/ssh_secure.zshrc

index 5554ae1634063eef3b8848fd600d724f9d42dfe7..bf5d5237937ffa129b2cc90a2062c4fcc945d03e 100644 (file)
@@ -8,6 +8,8 @@
 [[ -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