5 # Written by Joerg Jaspert <joerg@debian.org>
9 # We (may) use those variables wherever, so fill them now.
10 # Avoids calling the processes all the time we need em.
12 USER=${USER:-`whoami`}
14 # :r strips "extension" (a . followed by 0 or more characters)
16 HOST=${HOST:-$(hostname -s)}
17 DOMAIN=${DOMAIN:-$(hostname -d 2>&-)}
18 [ "$DOMAIN" = "" -o "$DOMAIN" = "localdomain" -o "$DOMAIN" = "(none)" ] && DOMAIN=$(grep "^search " /etc/resolv.conf | cut -d' ' -f2)
19 [[ -f /etc/debian_version ]] && DISTRI="Debian"
21 # Local settings and styles can go here and (usually) overwrite
22 # things defined by me later.
23 [[ -f ${ZDOTDIR}/zshenv.local ]] && source ${ZDOTDIR}/zshenv.local
27 # Path to search for autoloadable functions.
28 fpath=( $HOME/.zsh/functions $HOME/zsh "$fpath[@]" )
29 # Only unique entries please.
33 # Include function path in script path so that we can run them even
34 # though a subshell may not know about functions.
35 # PATH should already be exported, but in case not. . .
41 /srv/qa.debian.org/mia
47 /usr/lib/nagios/plugins
52 if [ "`id -u`" = "0" ] || ! [ -x /usr/bin/id ]; then
61 # Only unique entries please.
63 # Remove entries that don't exist on this system. Just for sanity's
64 # sake more than anything.
65 path=( ${^path}(N-/) )
67 export PATH USER HOST DOMAIN UID
69 # Command to use when redirecting from/to a null command.
70 # READNULLCMD is redefined in .zshrc for interactive shells.
74 # Unix groups: remember the original group ID. (For prompts.)
75 if [[ ${+ORIGGID} -eq 0 ]]; then