fix fqdn for those who fail hostname -f and $HOSTNAME
This commit is contained in:
parent
5e1f6ac564
commit
8a648bcf70
1 changed files with 1 additions and 2 deletions
3
shellrc
3
shellrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue