From 8a648bcf706d3527d24638876943731c30f38c69 Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 7 Apr 2016 13:16:46 +0300 Subject: [PATCH] fix fqdn for those who fail hostname -f and $HOSTNAME --- shellrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shellrc b/shellrc index 555bc17..e32283e 100644 --- a/shellrc +++ b/shellrc @@ -18,7 +18,7 @@ fi export fqdn="$(hostname -f)" if [[ -z ${fqdn} ]]; then - export fqdn="${HOSTNAME}" + export fqdn="$(hostname)" fi newline=" @@ -414,7 +414,6 @@ if is_zsh; then # {{{ # }}} fi # }}} if is_bash; then # {{{ -# bash # {{{ ~ options HISTSIZE=1000 HISTCONTROL=ignoredups:ignorespace