Author: Kyle Fuller <kyle@fuller.li> 2023-06-24 18:29:01 +0000 +0000
Committer: Kyle Fuller <kyle@fuller.li> 2023-06-24 18:29:01 +0000 +0000
Commit: 68bac62af184a0e9e84ae0df1b1aaf107f49d4ef
Parent: d5c99408e6e2e52a6217fdf0cf6540a9993b29aa
feat(shell): show host when using ssh
diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish
index 126ad711f933b2638bb1b70b660bc98b75c02d13..3b95f3548d99ceee0011a971b6e72361912d27c0 100644
--- a/.config/fish/functions/fish_prompt.fish
+++ b/.config/fish/functions/fish_prompt.fish
@@ -1,4 +1,8 @@
function fish_prompt
+ if test -n "$SSH_TTY"
+ echo -n "$hostname "
+ end
+
if test -n "$REGION"
set_color FF69B4
echo -n "[$REGION] "
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 3a6812fc60245b3090cd45acb8a56f5b87f74608..52f073ddfa6514c2577552c8d6d5383de9577f41 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -11,7 +11,7 @@ set -g status-fg white
set -g status-justify centre
set -g status-left ""
-set -g status-right ""
+set -g status-right "#H"
setw -g window-status-format "#[fg=colour243] #W"
setw -g window-status-current-format " #W"