From c6983b6f5a23eedb4798ce0173e042b86b6ea361 Mon Sep 17 00:00:00 2001 From: twoneis Date: Sun, 9 Mar 2025 22:46:49 +0100 Subject: [PATCH] add ssh to prompt --- modules/utils/prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/utils/prompt.fish b/modules/utils/prompt.fish index 3ade6fa..1203928 100644 --- a/modules/utils/prompt.fish +++ b/modules/utils/prompt.fish @@ -16,7 +16,7 @@ end set -l ssh if test -n "$SSH_CLIENT" - set ssh (set_color brblack)"$USER@$hostname" + set ssh (set_color brblack)"\t$USER@$hostname"(set_color normal) end 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" end -string join "" -- $stat $path \n $nix $prompt +string join "" -- $stat $path $ssh \n $nix $prompt