diff options
| author | Yigit Sever | 2024-04-16 01:49:17 +0300 |
|---|---|---|
| committer | Yigit Sever | 2024-04-16 01:50:41 +0300 |
| commit | d921159a7ed648105d9248cafa44930b90603604 (patch) | |
| tree | 4b6a21f22d078f7fa3001c1e250918889d83ac2b | |
| parent | c5e1f082eb031889af2c5efcf4ca7f252584a80b (diff) | |
| download | dotfiles-d921159a7ed648105d9248cafa44930b90603604.tar.gz dotfiles-d921159a7ed648105d9248cafa44930b90603604.tar.bz2 dotfiles-d921159a7ed648105d9248cafa44930b90603604.zip | |
fish: show ssh'd hostname on prompt
| -rw-r--r-- | .config/fish/functions/fish_prompt.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish index 62e3d68..7d6f3e7 100644 --- a/.config/fish/functions/fish_prompt.fish +++ b/.config/fish/functions/fish_prompt.fish | |||
| @@ -17,7 +17,7 @@ function fish_prompt | |||
| 17 | end | 17 | end |
| 18 | 18 | ||
| 19 | if set -q SSH_TTY | 19 | if set -q SSH_TTY |
| 20 | set -l marker "(prompt_hostname) $marker" | 20 | set marker "⸢$(prompt_hostname)⸥ " "$marker_color" "ζ" |
| 21 | end | 21 | end |
| 22 | 22 | ||
| 23 | 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]) |
