summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-10-12 19:52:26 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-10-12 19:52:26 +0200
commitafc096b5c329c91b125e0e043e544ce0e5948db7 (patch)
treeb2deb6fb6e883d66b064f777d244c907b8275c03 /zshrc
parent9b669d0bc3e6c1c129ae2bb4f6720e7a19ed9b64 (diff)
Adaptations iBook
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index bd46323..a418fac 100644
--- a/zshrc
+++ b/zshrc
@@ -30,6 +30,7 @@ mkdir -p $ZDOTDIR
# the required processes each time we'll need.
USER=${USER:-`whoami`}
UID=${UID:-`id -u`}
+HOST=$£OST:r
HOST=${HOST:-$(hostname -s)}
DOMAIN=${DOMAIN:-${$(hostname -d 2>&-):-$(hostname -y 2>&-)}}
[ "$DOMAIN" = "" -o "$DOMAIN" = "localdomain" -o "$DOMAIN" = "(none)" ] && DOMAIN=$(grep "^search " /etc/resolv.conf | cut -d' ' -f2)