~SITE now ambiguous, ~SERVER moved, ~SERVER-SKEL is gone
[abe:zshrc.git] / zsh.d / 55-hash
1 # -*- sh -*-
2
3 if [[ -d /var/imap/a/abe ]]; then
4     hash -d imap=/var/imap/a/abe
5 fi
6
7 if [[ "$NISDOMAINNAME" = "phys.ethz.ch" ]]; then
8     hash -d local=/pub/debian-local
9     hash -d configs=/pub/debian-local/configs
10     hash -d byhost=/pub/debian-local/configs/byHost
11     hash -d bygroup=/pub/debian-local/configs/byGroup
12     hash -d SERVER=/pub/debian-local/configs/byGroup/SERVER
13
14     # All our current and probably future distributions
15     for d in etch lenny squeeze wheezy jessie karmic lucid maverick natty oneiric precise quantal raring saucy trusty utopic; do
16         if [[ -d /pub/debian-local/configs/$d ]]; then
17             hash -d $d=/pub/debian-local/configs/$d
18         fi
19     done
20 fi
21
22 if [[ -d /usr/share/doc/debian-policy ]]; then
23     hash -d policy=/usr/share/doc/debian-policy
24 fi
25
26 if [[ -d /usr/share/doc/developers-reference ]]; then
27     hash -d reference=/usr/share/doc/developers-reference
28 fi
29
30 # From corekeeper
31 if [[ -d /var/log/core ]]; then
32     hash -d core=/var/log/core
33 fi