From 89b2ee2405429ac7787e7ef4dbb26de8ebf5a786 Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Fri, 3 Jul 2020 16:30:28 +0200 Subject: [PATCH] Added a new tmux style for nested sessions --- .tmux.nested.conf | 12 ++++++++++++ .zsh/.zlogin | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 .tmux.nested.conf diff --git a/.tmux.nested.conf b/.tmux.nested.conf new file mode 100644 index 0000000..d6a1625 --- /dev/null +++ b/.tmux.nested.conf @@ -0,0 +1,12 @@ +#+--- Colors ---+ +set -g status-bg brightblack +set -g status-fg white + +#+--- Bars ---+ +set -g status-left "#[fg=black,bg=green,bold] #S " +set -g status-right "#{prefix_highlight}#[fg=white,bg=red,bold] #h " + +#+--- Windows ---+ +set -g window-status-format " #[fg=white,bg=black] #I #[fg=white,bg=black]#W #F " +set -g window-status-current-format " #[fg=white,bg=red] #I#[fg=white,bg=red,nobold,noitalics,nounderscore] #[fg=white,bg=red]#W #F " +set -g window-status-separator "" diff --git a/.zsh/.zlogin b/.zsh/.zlogin index 8842123..13e90d8 100644 --- a/.zsh/.zlogin +++ b/.zsh/.zlogin @@ -30,6 +30,10 @@ for ((i=1; i <= $#fpath; ++i)); do done ) +## If tmux session is nested, source modified config (e.g. for overwriting styles) +if [ -n "$TMUX" ]; then + tmux source-file ~/.tmux.nested.conf +fi ## Update or install vim plugins #vim -i NONE +PlugUpdate +PlugClean! +qal