From 791df18b7694a9f5321e461c6f832e57089ee033 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 23 Aug 2008 21:09:17 +0200 Subject: etc/directories: Use hash -d instead of parameter assignments --- etc/directories | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/etc/directories b/etc/directories index 7148991..8fb5985 100644 --- a/etc/directories +++ b/etc/directories @@ -2,20 +2,22 @@ ## vim:ft=zsh case `hostname` in aneurysm) - www=/var/www - web=$HOME/public_html - export vcs=$HOME/var/svn - export lyrics=$HOME/packages/lyrics + hash -d www=/var/www + hash -d web=$HOME/public_html + hash -d vcs=$HOME/var/svn + hash -d lyrics=$HOME/packages/lyrics ;; saviour) - music=$HOME/lib/audio - www=/var/www - cgi=/usr/lib/cgi-bin - export lyrics=$HOME/packages/lyrics - export vcs=$HOME/var/svn + hash -d music=$HOME/lib/audio + hash -d www=/var/www + hash -d cgi=/usr/lib/cgi-bin + hash -d lyrics=$HOME/packages/lyrics + hash -d vcs=$HOME/var/svn ;; nemesis) - export vcs=$HOME/var/svn - export lyrics=$HOME/packages/lyrics + hash -d vcs=$HOME/var/svn + hash -d lyrics=$HOME/packages/lyrics esac -svn=$vcs + +[[ -n $vcs ]] && export vcs +[[ -n $lyrics ]] && export lyrics -- cgit v1.2.3