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)"
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