updated to fix tmux 2.9 style changes

This commit is contained in:
Lloyd W. Slade 2019-11-07 11:35:02 -05:00
parent 38662a5c15
commit ec36be9d18
3 changed files with 49 additions and 2 deletions

View file

@ -12,6 +12,7 @@ In case any of these bindings interfere with other commands, they can be tempora
## Installation
1. Clone this repository to your home folder.
2. Establish a symbolic link from the tmux.conf file in the repository folder your home folder:
<code>ln -s /home/$USER/fmux/.tmux.conf /home/$USER/.tmux.conf</code>
2. Establish a symbolic link from the tmux.conf file in the repository folder your home folder:
<code>ln -s /home/$USER/fmux/tmux.conf /home/$USER/.tmux.conf</code>
If your tmux version is 2.9 or greater, use `tmux-2.9.conf` instead. Version 2.9 introduced some [breaking changes](https://github.com/tmux/tmux/issues/1689) to the style formatting.
3. Start a new tmux session, or reload the configuration file in existing session(s).

46
tmux-2.9.conf Normal file
View file

@ -0,0 +1,46 @@
# fmux v0.5
# LWS 2017
# source local file
source ~/.tmux-local.conf
# make tmux play nice with various apps
set -g default-terminal "screen-256color"
# source ~/fmux/f-keys, which adds the useful byobu F-key shortcuts
source ~/fmux/f-keys
# pane border colors
set -g pane-border-style fg=black
set -g pane-active-border fg=white
#
# status bar shenanigans
#
set -g status on
setw -g monitor-activity on
# bar refresh interval
set -g status-interval 5
# don't rename panes, renumber panes so they stay in order after one is closed
set-option -g allow-rename off
set -g renumber-windows on
tmux_conf_new_window_retain_current_path=false
tmux_conf_new_pane_retain_current_path=true
set -g window-status-separator ''
set -g @ssh_auto_rename_window off
set -g status-style 'fg=colour250,bg=colour0'
set-window-option -g status-left "#{?client_prefix,#[bg=coolour250]#[bg=colour34 fg=colour255],} #S "
set-window-option -g status-right "#(~/fmux/tmux-right.sh)"
set-window-option -g window-status-style "fg=colour250,bg=colour237"
set-window-option -g window-status-current-style "fg=colour255,bg=colour34"
set-window-option -g window-status-bell-style "fg=colour160,bg=colour237"
set-window-option -g window-status-activity-style "fg=colour34,bg=colour237"
set-window-option -g window-status-format ' #I #W '
set-window-option -g window-status-current-format ' #I #W '