mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
parent
eb533e75bd
commit
4e05b9d494
@ -654,7 +654,7 @@ if not type -q prompt_hostname
|
|||||||
end
|
end
|
||||||
|
|
||||||
function __bobthefish_prompt_user -S -d 'Display current user and hostname'
|
function __bobthefish_prompt_user -S -d 'Display current user and hostname'
|
||||||
[ "$theme_display_user" = 'yes' -o \( "$theme_display_user" != 'no' -a -n "$SSH_CLIENT" \) -o \( -n "$default_user" -a "$USER" != "$default_user" \) ]
|
[ "$theme_display_user" = 'yes' -o \( "$theme_display_user" != 'no' -a -n "$SSH_CLIENT" \) -o \( -n "$default_user" -a "$USER" != "$default_user" \) -o -n "$SUDO_USER" ]
|
||||||
and set -l display_user
|
and set -l display_user
|
||||||
|
|
||||||
[ "$theme_display_hostname" = 'yes' -o \( "$theme_display_hostname" != 'no' -a -n "$SSH_CLIENT" \) ]
|
[ "$theme_display_hostname" = 'yes' -o \( "$theme_display_hostname" != 'no' -a -n "$SSH_CLIENT" \) ]
|
||||||
|
Loading…
Reference in New Issue
Block a user