From 4562e2678369b558ca7e9acde5641bc32ea4c911 Mon Sep 17 00:00:00 2001 From: tfheen Date: Wed, 8 Oct 2003 16:18:05 +0000 Subject: [PATCH] fix -f to -e since they might be symlinks. git-svn-id: file:///svn/tfheen/trunk/dotfiles@196 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5