X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/642cfc796043ea4965a61ed9b45b07c179888012..81deaea015bcc812e1b3225c033142d3d450f3d3:/.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..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