diff options
-rw-r--r-- | .config/fish/functions/fish_prompt.fish | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish index 3b6e639..62e3d68 100644 --- a/.config/fish/functions/fish_prompt.fish +++ b/.config/fish/functions/fish_prompt.fish | |||
@@ -16,6 +16,10 @@ function fish_prompt | |||
16 | set marker "$marker_color# " | 16 | set marker "$marker_color# " |
17 | end | 17 | end |
18 | 18 | ||
19 | if set -q SSH_TTY | ||
20 | set -l marker "(prompt_hostname) $marker" | ||
21 | end | ||
22 | |||
19 | set -l cwd $cyan (string join / (string split -r -m3 / (prompt_pwd))[-3..-1]) | 23 | set -l cwd $cyan (string join / (string split -r -m3 / (prompt_pwd))[-3..-1]) |
20 | 24 | ||
21 | echo -n -s $marker ' ' $cwd $normal ' ' | 25 | echo -n -s $marker ' ' $cwd $normal ' ' |