1
0
Fork 0

fix fqdn for those who fail hostname -f and $HOSTNAME

This commit is contained in:
Von Random 2016-04-07 13:16:46 +03:00
parent 5e1f6ac564
commit 8a648bcf70

View file

@ -18,7 +18,7 @@ fi
export fqdn="$(hostname -f)" export fqdn="$(hostname -f)"
if [[ -z ${fqdn} ]]; then if [[ -z ${fqdn} ]]; then
export fqdn="${HOSTNAME}" export fqdn="$(hostname)"
fi fi
newline=" newline="
@ -414,7 +414,6 @@ if is_zsh; then # {{{
# }}} # }}}
fi # }}} fi # }}}
if is_bash; then # {{{ if is_bash; then # {{{
# bash
# {{{ ~ options # {{{ ~ options
HISTSIZE=1000 HISTSIZE=1000
HISTCONTROL=ignoredups:ignorespace HISTCONTROL=ignoredups:ignorespace