From 6dbd391a567ad885c924dd91eb01b8baaa57a173 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 26 Apr 2023 17:10:51 +0100 Subject: [PATCH] Strip domain from hostname on macOS Fortunately this command also works on Linux but its not required there. ```console $ hostname -s ``` --- tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index f2deda4..7d28f6a 100644 --- a/tmux.conf +++ b/tmux.conf @@ -127,7 +127,7 @@ if -b '[ "$WSLENV" = "" ]' \ # Left status style if -b '[ "$WSL_DISTRO_NAME" != "" ]' \ 'setw -g status-left " #(hostname)|#{WSL_DISTRO_NAME}|#{session_name}"' \ - 'setw -g status-left " #(hostname)|#{session_name}"' + 'setw -g status-left " #(hostname -s)|#{session_name}"' setw -g status-left-style fg=colour240,bg=colour233 setw -g status-left-length 32