From 8f1d6a8a57e05e3f871ed8d9d777b7908a96ca70 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 28 Sep 2020 23:34:03 -0400 Subject: [PATCH] tmux: Remove slstatus by default, source ~/.tmux.conf.local Like many of my configs, I'm finding I like them slightly different on different machines. In this case, I don't need slstatus on most of my machines (i.e. on my laptop, I've got it running in the dwm desktop); however, in certain circumstances (i.e. remoting into work via SSH), it's super handy to have it. To work around this, the .tmux.conf file now sources ~/.tmux.conf.local if it exists, providing out-of-git local overrides. --- .tmux.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 1e45a72..5c2b81a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -60,5 +60,8 @@ bind -T copy-mode-vi P send -X clear-selection \; send -X start-of-line \; send # Status set -g status-interval 60 set -g status-left-length 20 -set -g status-right "[$USER@#h] #(slstatus -s)%D %H:%M" +set -g status-right "[$USER@#h] %D %H:%M" set -g status-right-length 90 + +# Finally, let the .local copy override anything here +if 'test -e $HOME/.tmux.conf.local' 'source-file $HOME/.tmux.conf.local' -- libgit2 0.28.4