diff options
-rw-r--r-- | zshrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -34,7 +34,9 @@ USER=${USER:-`whoami`} UID=${UID:-`id -u`} HOST=$HOST:r HOST=${HOST:-$(hostname -s)} -DOMAIN=${DOMAIN:-${$(hostname -d 2>&-):-$(hostname -y 2>&-)}} +DOMAIN=${DOMAIN:-$(hostname -a | cut -d. -f2-)} +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) DEBUG=${DEBUG:-no} |