]> err.no Git - dotfiles/commitdiff
fix -f to -e since they might be symlinks.
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 8 Oct 2003 16:18:05 +0000 (16:18 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 8 Oct 2003 16:18:05 +0000 (16:18 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@196 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

zshrc

diff --git a/zshrc b/zshrc
index 0221a4581affc7193dca39fa404e932b39e9eb71..32559fad63c21c99f7e378fa2385b619b0ad3984 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -26,13 +26,13 @@ zstyle ':completion:*' match-original both
 zstyle ':completion:*' max-errors 1
 zstyle :compinstall filename '/home/tfheen/.zshrc'
 
-if [ -f ~/.ssh/known_hosts ]; then
+if [ -e ~/.ssh/known_hosts ]; then
     hosts=(`awk -F "[, ]" '{print $1}' ~/.ssh/known_hosts`)
 fi
-if [ -f ~/.ssh/known_hosts2 ]; then
+if [ -e ~/.ssh/known_hosts2 ]; then
     hosts=($hosts `awk -F "[, ]" '{print $1}' ~/.ssh/known_hosts2`)
 fi
-if [ -f ~/.ssh/config ]; then
+if [ -e ~/.ssh/config ]; then
     hosts=($hosts `grep ^Host ~/.ssh/config | sed s/Host\ // | egrep -v '^\*$'`)
 fi
 if [ "$hosts" ]; then