2012-11-10 19:53:52 -08:00
|
|
|
set-option -g status on
|
|
|
|
set-option -g status-interval 2
|
2015-08-05 10:39:54 -07:00
|
|
|
set-option -g renumber-windows on
|
2012-11-10 19:53:52 -08:00
|
|
|
set-option -g status-justify "centre"
|
2017-04-28 08:59:01 -07:00
|
|
|
set-option -g history-limit 10000
|
|
|
|
|
2015-10-14 09:02:01 -07:00
|
|
|
# Fix for weird characters right after pressing escape in neovim
|
|
|
|
set -s escape-time 0
|
|
|
|
|
2012-11-10 19:53:52 -08:00
|
|
|
### Copy / Paste
|
2015-10-26 14:49:19 -07:00
|
|
|
set-option -g status-keys vi
|
2012-11-09 20:44:06 -08:00
|
|
|
set-window-option -g mode-keys vi
|
2015-10-26 14:49:19 -07:00
|
|
|
bind-key -t vi-copy v begin-selection
|
|
|
|
bind-key -t vi-copy y copy-pipe 'xclip -selection clipboard'
|
2012-11-09 20:44:06 -08:00
|
|
|
|
|
|
|
|
2017-06-09 08:09:51 -07:00
|
|
|
### vim/tmux navigation
|
2015-08-05 10:39:54 -07:00
|
|
|
set -g focus-events on
|
|
|
|
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
|
|
|
|
bind -n C-Left if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
|
|
|
bind -n C-Down if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
|
|
|
bind -n C-Up if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
|
|
|
bind -n C-Right if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
|
|
|
|
|
|
|
# change windows
|
|
|
|
bind -n S-Right next-window
|
|
|
|
bind -n S-Left previous-window
|
|
|
|
|
2017-06-09 08:09:51 -07:00
|
|
|
#### COLOUR (Solarized light)
|
|
|
|
|
|
|
|
# default statusbar colors
|
|
|
|
set-option -g status-bg colour238 #grey
|
|
|
|
set-option -g status-fg yellow #yellow
|
|
|
|
set-option -g status-attr default
|
|
|
|
|
2012-11-09 20:44:06 -08:00
|
|
|
# default window title colors
|
2017-06-09 08:09:51 -07:00
|
|
|
set-window-option -g window-status-fg brightyellow #base00
|
2012-11-09 20:44:06 -08:00
|
|
|
set-window-option -g window-status-bg default
|
|
|
|
#set-window-option -g window-status-attr dim
|
|
|
|
|
|
|
|
# active window title colors
|
2017-06-09 08:09:51 -07:00
|
|
|
set-window-option -g window-status-current-fg colour195 #orange
|
2012-11-09 20:44:06 -08:00
|
|
|
set-window-option -g window-status-current-bg default
|
|
|
|
#set-window-option -g window-status-current-attr bright
|
|
|
|
|
|
|
|
# pane border
|
2017-06-09 08:09:51 -07:00
|
|
|
set-option -g pane-border-fg brightcyan #base2
|
|
|
|
set-option -g pane-active-border-fg brightred #base1
|
2012-11-09 20:44:06 -08:00
|
|
|
|
|
|
|
# message text
|
2017-06-09 08:09:51 -07:00
|
|
|
set-option -g message-bg white #base2
|
2012-11-10 19:53:52 -08:00
|
|
|
set-option -g message-fg brightred #orange
|
2012-11-09 20:44:06 -08:00
|
|
|
|
|
|
|
# pane number display
|
2012-11-10 19:53:52 -08:00
|
|
|
set-option -g display-panes-active-colour blue #blue
|
|
|
|
set-option -g display-panes-colour brightred #orange
|
2012-11-09 20:44:06 -08:00
|
|
|
|
|
|
|
# clock
|
2015-10-14 09:02:01 -07:00
|
|
|
set-window-option -g clock-mode-colour green #green
|
2017-06-09 08:09:51 -07:00
|
|
|
|
|
|
|
# bell
|
|
|
|
set-window-option -g window-status-bell-style fg=white,bg=red #base2, red
|