From 81deaea015bcc812e1b3225c033142d3d450f3d3 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 17 May 2008 13:24:12 +0100 Subject: [PATCH 1/1] make _NEW_KNOWN_HOSTS variable local --- .zsh/zshrc/parts.d/50_ssh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5