summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
l---------host:prunelle1
-rw-r--r--zshrc1
2 files changed, 2 insertions, 0 deletions
diff --git a/host:prunelle b/host:prunelle
new file mode 120000
index 0000000..484d76c
--- /dev/null
+++ b/host:prunelle
@@ -0,0 +1 @@
+net:sweethome/host:prunelle \ No newline at end of file
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)