From: martin f. krafft Date: Sat, 17 May 2008 12:24:12 +0000 (+0100) Subject: make _NEW_KNOWN_HOSTS variable local X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/81deaea015bcc812e1b3225c033142d3d450f3d3?ds=sidebyside make _NEW_KNOWN_HOSTS variable local --- diff --git a/.zsh/zshrc/parts.d/50_ssh b/.zsh/zshrc/parts.d/50_ssh index d849b39..170b5df 100644 --- a/.zsh/zshrc/parts.d/50_ssh +++ b/.zsh/zshrc/parts.d/50_ssh @@ -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