fish: show username@host over ssh
This commit is contained in:
parent
2476484618
commit
12f1b59a09
2 changed files with 6 additions and 0 deletions
5
cli/.config/fish/functions/prompt.user.fish
Normal file
5
cli/.config/fish/functions/prompt.user.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
function prompt.user
|
||||
if test -n "$SSH_CLIENT" || string match -qe root "$USER"
|
||||
prompt.add black $USER@$hostname
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue