Added a new tmux style for nested sessions

This commit is contained in:
Christian Baer 2020-07-03 16:30:28 +02:00
parent 7e1dc02d1b
commit 89b2ee2405
2 changed files with 16 additions and 0 deletions

12
.tmux.nested.conf Normal file
View File

@ -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 ""

View File

@ -30,6 +30,10 @@ for ((i=1; i <= $#fpath; ++i)); do
done 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 ## Update or install vim plugins
#vim -i NONE +PlugUpdate +PlugClean! +qal #vim -i NONE +PlugUpdate +PlugClean! +qal