From c94e1368e754c1345c9213b700420e468fdc13fa Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 17 Apr 2015 16:42:41 +0200 Subject: Merged from Anevia. --- zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zshrc') 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 -- cgit v1.2.3