Trying to fix tmux redraw issues in nested sessions, appears to be status line related. Also changed page up/down keybinds due to rxvt conflict.
This commit is contained in:
@@ -31,10 +31,10 @@ bind k select-pane -U
|
|||||||
bind l select-pane -R
|
bind l select-pane -R
|
||||||
|
|
||||||
# page up/down
|
# page up/down
|
||||||
bind-key -n S-PageUp copy-mode -u
|
bind-key -n PageUp copy-mode -u
|
||||||
bind-key -n S-PageDown copy-mode
|
bind-key -n PageDown copy-mode
|
||||||
bind-key -T copy-mode S-PageUp send-keys -X page-up
|
bind-key -T copy-mode C-PageUp send-keys -X page-up
|
||||||
bind-key -T copy-mode S-PageDown send-keys -X page-down
|
bind-key -T copy-mode C-PageDown send-keys -X page-down
|
||||||
|
|
||||||
#join window
|
#join window
|
||||||
bind-key @ command-prompt -p "create pane from:" "join-pane -s ':%%'"
|
bind-key @ command-prompt -p "create pane from:" "join-pane -s ':%%'"
|
||||||
@@ -53,32 +53,39 @@ set -g mode-keys vi
|
|||||||
## tmux >= 2.1
|
## tmux >= 2.1
|
||||||
#set -g mouse on
|
#set -g mouse on
|
||||||
|
|
||||||
|
|
||||||
bind-key Tab last-window
|
bind-key Tab last-window
|
||||||
bind-key BTab previous-window
|
bind-key BTab previous-window
|
||||||
|
|
||||||
# prefix-r to reload tmux config
|
# prefix-r to reload tmux config
|
||||||
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
|
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
|
||||||
|
|
||||||
# Basic status bar colors
|
###
|
||||||
set-option -g status-bg default
|
### Status Bar Configuration
|
||||||
set-option -g status-fg white
|
###
|
||||||
|
|
||||||
# Left side of status bar
|
## Basic status bar colors
|
||||||
set-option -g status-left-length 40
|
#set-option -g status-bg default
|
||||||
set-option -g status-left "#[fg=colour18,bg=colour12] #S #[fg=default,bg=default] "
|
#set-option -g status-fg white
|
||||||
|
|
||||||
# Window status
|
## Left side of status bar
|
||||||
set-option -g window-status-format "#[fg=colour18,bg=brightblack] #I #[fg=white,bg=black] #W "
|
#set-option -g status-left-length 40
|
||||||
set-option -g window-status-current-format "#[fg=colour18,bg=colour7] #I #[fg=colour18,bg=colour4] #W "
|
#set-option -g status-left "#[fg=colour18,bg=colour12] #S #[fg=default,bg=default] "
|
||||||
set-option -g window-status-separator " "
|
|
||||||
set-option -g status-justify left
|
|
||||||
|
|
||||||
# Right side of status bar
|
## Window status
|
||||||
set-option -g status-right-length 40
|
#set-option -g window-status-format "#[fg=colour18,bg=brightblack] #I #[fg=white,bg=black] #W "
|
||||||
## includes the time in the right status
|
#set-option -g window-status-current-format "#[fg=colour18,bg=colour7] #I #[fg=colour18,bg=colour4] #W "
|
||||||
#set-option -g status-right " #[fg=brightwhite,bg=black] %a, %d %b %H:%M #[fg=colour18,bg=colour4] #(whoami)@#h "
|
#set-option -g window-status-separator " "
|
||||||
set-option -g status-right " #[fg=colour18,bg=colour4] #(whoami)@#h "
|
#set-option -g status-justify left
|
||||||
|
|
||||||
|
## Right side of status bar
|
||||||
|
#set-option -g status-right-length 40
|
||||||
|
### includes the time in the right status
|
||||||
|
##set-option -g status-right " #[fg=brightwhite,bg=black] %a, %d %b %H:%M #[fg=colour18,bg=colour4] #(whoami)@#h "
|
||||||
|
#set-option -g status-right " #[fg=colour18,bg=colour4] #(whoami)@#h "
|
||||||
|
|
||||||
|
###
|
||||||
|
### End Status Bar Configuration
|
||||||
|
###
|
||||||
|
|
||||||
# Pane border
|
# Pane border
|
||||||
#set-option -g pane-border-style bg=brightblack,fg=brightblack
|
#set-option -g pane-border-style bg=brightblack,fg=brightblack
|
||||||
|
|||||||
Reference in New Issue
Block a user