mirror of
https://github.com/pnx/dotfiles
synced 2026-06-17 11:30:02 +02:00
fixing fish
This commit is contained in:
parent
7f50f1867c
commit
e48368766f
2 changed files with 11 additions and 2 deletions
|
|
@ -21,6 +21,8 @@ function prompt_login --description 'display user name for the prompt'
|
|||
# If we're running via SSH, change the host color.
|
||||
set -l color_host $fish_color_host
|
||||
if set -q SSH_TTY; and set -q fish_color_host_remote
|
||||
echo -n -s (set_color $fish_color_user) "$USER" (set_color normal) / (set_color $color_host) (prompt_hostname) (set_color normal)
|
||||
set color_host $fish_color_host_remote
|
||||
end
|
||||
|
||||
echo -n -s (set_color $fish_color_user) "$USER" (set_color normal) / (set_color $color_host) (prompt_hostname) (set_color normal)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue