Use more portable uname -n rather than hostname.

Fixes #312
This commit is contained in:
Justin Hileman
2021-11-05 10:16:55 -04:00
parent 626bd39b00
commit 332f23abd7
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ function __bobthefish_title_user -S -d 'Display actual user if different from $d
if [ "$theme_title_display_user" = 'yes' ]
if [ "$USER" != "$default_user" -o -n "$SSH_CLIENT" ]
set -l IFS .
hostname | read -l hostname __
uname -n | read -l hostname __
echo -ns (whoami) '@' $hostname ' '
end
end