summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-08-23 21:09:17 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-08-23 21:09:17 +0200
commit791df18b7694a9f5321e461c6f832e57089ee033 (patch)
tree91135f90c3dc1f0d91e9d5bcc1db8b946f69c327 /etc
parent40f4b2b6ddc3d7796601b1e928b6bb530aca71ab (diff)
etc/directories: Use hash -d instead of parameter assignments
Diffstat (limited to 'etc')
-rw-r--r--etc/directories26
1 files 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