add ssh to prompt

This commit is contained in:
twoneis 2025-03-09 22:46:49 +01:00
parent 2bcd8a0601
commit c6983b6f5a

View file

@ -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