summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@anevia.com>2015-06-18 17:27:27 +0200
committerHugues Hiegel <hugues.hiegel@anevia.com>2015-06-18 17:27:27 +0200
commite254a7c87ff4145f83ecacc98f8e4256b404b088 (patch)
treebfc58fdce68abb35bfa76ad2232c19d7f4093e22 /zshrc
parentc3f881565bce9b145937b63d6b0e9fa027c581ed (diff)
parent459669b7cc58abf3958e16d2df7998c1cad8e02d (diff)
Merge remote-tracking branch 'origin/master'
Conflicts: 01_Internal.zsh
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