show user@hostname in a shell opened from an ssh connection
This commit is contained in:
parent
61bb1ac1ce
commit
3467440429
1 changed files with 7 additions and 1 deletions
8
fish.nix
8
fish.nix
|
|
@ -74,8 +74,14 @@
|
|||
set -l direnv_status (direnv status | grep -q "Found RC path" && echo " direnv")
|
||||
# end
|
||||
|
||||
if set -q SSH_CLIENT
|
||||
set login_str (prompt_login)
|
||||
else
|
||||
set login_str ""
|
||||
end
|
||||
|
||||
# echo -n -s (prompt_login)' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
||||
echo -n -s (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
||||
echo -n -s $login_str " " (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
||||
(set_color -i yellow) $direnv_status $normal " "$prompt_status " "$suffix " "
|
||||
'';
|
||||
# run $argv when a file tracked by git is updated.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue