summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2015-04-17 16:42:41 +0200
committerHugues Hiegel <hugues@hiegel.fr>2015-04-17 16:42:41 +0200
commitc94e1368e754c1345c9213b700420e468fdc13fa (patch)
tree456e86610c838515b370c17668f381419ac4c5a4 /zshrc
parent6813d7633ca9333c837812a41bdd8411760a59d0 (diff)
Merged from Anevia.
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/zshrc b/zshrc
index 8c1a7f6..499ad3c 100644
--- a/zshrc
+++ b/zshrc
@@ -6,12 +6,12 @@
#
# If you want to add a file, name it specifically in the form
#
-# $ZDOTDIR/??_*.zsh
+# $ZDOTDIR/??_*.zsh
#
# Where "??" should be a two-digit number.
# With that, file ``10_Toto.zsh'' would be parsed before
# file ``20_Tutu.zsh'', allowing you ordering your scripts.
-#
+#
# If you want to make user, host or network specific configurations,
# add your specific scripts to the folders
# - "sys:$(uname -s)" for OS-specific conf,
@@ -38,6 +38,7 @@ HOST=$HOST:r
HOST=${HOST:-$(hostname -s)}
DOMAIN=$(hostname -a 2>&-| sed 's/^[^\.]*\.\?//')
DOMAIN=${DOMAIN:-$(hostname -d 2>&-)}
+DOMAIN=${DOMAIN:-$(hostname -y 2>&-)}
[ "$DOMAIN" = "" -o "$DOMAIN" = "localdomain" -o "$DOMAIN" = "(none)" ] && DOMAIN=$(grep "^search " /etc/resolv.conf | cut -d' ' -f2)
## Agent de clefs SSH/GPG