From: tfheen Date: Wed, 8 Oct 2003 16:18:05 +0000 (+0000) Subject: fix -f to -e since they might be symlinks. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4562e2678369b558ca7e9acde5641bc32ea4c911;p=dotfiles fix -f to -e since they might be symlinks. git-svn-id: file:///svn/tfheen/trunk/dotfiles@196 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/zshrc b/zshrc index 0221a45..32559fa 100644 --- 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