|
|
|
@ -3,7 +3,19 @@
|
|
|
|
|
# set -g theme_title_display_path no
|
|
|
|
|
# set -g theme_title_use_abbreviated_path no
|
|
|
|
|
|
|
|
|
|
function __bobthefish_user -S -d 'Display actual user if different from $default_user'
|
|
|
|
|
if [ "$theme_display_user" = 'yes' ]
|
|
|
|
|
if [ "$USER" != "$default_user" -o -n "$SSH_CLIENT" ]
|
|
|
|
|
set -l IFS .
|
|
|
|
|
hostname | read -l hostname __
|
|
|
|
|
echo -ns (whoami) '@' $hostname ' '
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function fish_title
|
|
|
|
|
__bobthefish_user
|
|
|
|
|
|
|
|
|
|
if [ "$theme_title_display_process" = 'yes' ]
|
|
|
|
|
echo $_
|
|
|
|
|
|
|
|
|
|