]> arthur.barton.de Git - OhMyZshExtensions.git/commitdiff
"ssh": Enfoce "StrictHostKeyChecking yes" for "ssh"
authorAlexander Barton <alex@barton.de>
Tue, 26 May 2015 21:28:29 +0000 (23:28 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 26 May 2015 21:28:29 +0000 (23:28 +0200)
And use aliases instead of functions.

plugins/ssh/ssh.plugin.zsh

index e7b65f1849eedbc71e4b00a8fc43831de0f29903..3312362c1fb379a4691e8bd5307f7bf71777ed63 100644 (file)
@@ -1,12 +1,6 @@
 # ssh.plugin.zsh
 # 2015-03-17, alex@barton.de
 
 # ssh.plugin.zsh
 # 2015-03-17, alex@barton.de
 
-sshnew ()
-{
-       ssh -o "StrictHostKeyChecking no" "$@"
-}
-
-sshtmp ()
-{
-       ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "$@"
-}
+alias ssh="\ssh -o 'StrictHostKeyChecking yes'"
+alias sshnew="\ssh -o 'StrictHostKeyChecking no'"
+alias sshtmp="\ssh -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile /dev/null'"