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)"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue