add ssh to prompt
This commit is contained in:
parent
2bcd8a0601
commit
c6983b6f5a
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ end
|
||||||
|
|
||||||
set -l ssh
|
set -l ssh
|
||||||
if test -n "$SSH_CLIENT"
|
if test -n "$SSH_CLIENT"
|
||||||
set ssh (set_color brblack)"$USER@$hostname"
|
set ssh (set_color brblack)"\t$USER@$hostname"(set_color normal)
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l git
|
set -l git
|
||||||
|
@ -24,4 +24,4 @@ set -l IS_GIT_REPO (command git rev-parse --is-inside-work-tree &>/dev/null)
|
||||||
if test -n "$IS_GIT_REPO"
|
if test -n "$IS_GIT_REPO"
|
||||||
end
|
end
|
||||||
|
|
||||||
string join "" -- $stat $path \n $nix $prompt
|
string join "" -- $stat $path $ssh \n $nix $prompt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue