X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/642cfc796043ea4965a61ed9b45b07c179888012..7df7fa156b3a53418a2965d28a4cf34cedab26c8:/.zsh/zshrc/parts.d/50_ssh?ds=inline diff --git a/.zsh/zshrc/parts.d/50_ssh b/.zsh/zshrc/parts.d/50_ssh index d849b39..eb57f74 100644 --- a/.zsh/zshrc/parts.d/50_ssh +++ b/.zsh/zshrc/parts.d/50_ssh @@ -5,7 +5,7 @@ # Copyright © 2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: http://git.madduck.net/v/etc/zsh.git +# Source repository: git://git.madduck.net/etc/ssh.git # # populate hosts completion with SSH's known_hosts @@ -16,12 +16,11 @@ if [ -r $HOME/.ssh/known_hosts ]; then unset _myhosts fi -_NEW_KNOWN_HOSTS=~/.ssh/known_hosts.NEW +local _NEW_KNOWN_HOSTS=~/.ssh/known_hosts.NEW alias ssh="{ [[ -f $_NEW_KNOWN_HOSTS ]] && warn $_NEW_KNOWN_HOSTS exists }; command ssh" alias sshnew="ssh -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile $_NEW_KNOWN_HOSTS'" alias scpnew="scp -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile $_NEW_KNOWN_HOSTS'" alias sshtmp="ssh -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile /dev/null'" alias scptmp="scp -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile /dev/null'" -unset _NEW_KNOWN_HOSTS # vim:ft=zsh