summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
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