Made gettitle more reliable

This commit is contained in:
Dylan 2016-04-29 14:50:16 +10:00
parent 07535f26cf
commit ac46be44cf
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ getdistro () {
# Title {{{
gettitle () {
title="${USER}@$(hostname)"
title="${USER:-$(whoami)}@${HOSTNAME:-$(hostname)}"
}
# }}}