From fd76c97c851deb239a38a2bdf73f6e0a4b64e197 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 6 Mar 2022 17:17:17 +0000 Subject: [PATCH] Update logic for enabling WSL in left status --- tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index a12b941..dd25b49 100644 --- a/tmux.conf +++ b/tmux.conf @@ -118,7 +118,7 @@ if -b '[ "`uname`" = "Darwin" ]' \ "xclip -i -sel p -f | xclip -i -sel c"' # Left status style -if -b '[ -n $WSL_DISTRO_NAME ]' \ +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-style fg=colour240,bg=colour233