2014-11-07 10:24:28 -08:00
|
|
|
# Make it use C-a, similar to screen..
|
2018-02-19 04:11:07 -08:00
|
|
|
#unbind C-b
|
|
|
|
#set -g prefix C-a
|
2014-11-07 10:24:28 -08:00
|
|
|
|
|
|
|
set -g default-terminal "screen-256color"
|
|
|
|
set -g history-limit 50000
|
|
|
|
|
2018-02-19 04:11:07 -08:00
|
|
|
# Tmux mouse mode
|
2018-03-26 04:38:58 -07:00
|
|
|
set-option -g mouse off
|
2014-11-07 10:24:28 -08:00
|
|
|
|
|
|
|
# THEME
|
|
|
|
set -g status-bg colour235
|
|
|
|
set -g status-fg yellow
|
|
|
|
set-option -g status-attr dim
|
|
|
|
set-window-option -g window-status-current-fg brightred #orange
|
|
|
|
set-window-option -g window-status-current-bg colour236
|
|
|
|
set-window-option -g window-status-current-attr bright
|
|
|
|
|
|
|
|
set -g status-interval 60
|
|
|
|
set -sg escape-time 1000
|
|
|
|
set-option -g base-index 1
|
|
|
|
setw -g aggressive-resize on
|
|
|
|
set -g status-justify centre
|
|
|
|
#set -g status-left '#[fg=green]#(whoami)@#H#[default]'
|
|
|
|
set -g status-left-length 70
|
2018-02-19 04:11:07 -08:00
|
|
|
set -g status-left "#[fg=yellow]#(ifconfig eth0 | grep 'inet ' | awk '{print \"eth0 \" $2}') #(ifconfig eth1 | grep 'inet ' | awk '{print \"eth1 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') #(ifconfig ppp0 | grep 'inet ' | awk '{print \"vpn \" $2}')"
|
2014-11-07 10:24:28 -08:00
|
|
|
# show session name, window & pane number, date and time on right side of status bar
|
|
|
|
set -g status-right-length 60
|
|
|
|
set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::"
|
|
|
|
# set pane colors - hilight the active pane
|
|
|
|
set-option -g pane-border-fg colour235 #base02
|
|
|
|
set-option -g pane-active-border-fg colour240 #base01
|
|
|
|
|
|
|
|
|
|
|
|
# use PREFIX | to split window horizontally and PREFIX - to split vertically
|
2018-02-19 04:11:07 -08:00
|
|
|
#bind | split-window -h
|
|
|
|
#bind - split-window -v
|
2015-12-10 07:30:34 -08:00
|
|
|
|
2014-11-07 10:24:28 -08:00
|
|
|
# Make the current window the first window
|
2018-02-19 04:11:07 -08:00
|
|
|
#bind T swap-window -t 1
|
2015-12-10 07:30:34 -08:00
|
|
|
|
2014-11-07 10:24:28 -08:00
|
|
|
# and use C-h and C-l to cycle thru panes
|
2018-02-19 04:11:07 -08:00
|
|
|
#bind -r C-h select-window -t :-
|
|
|
|
#bind -r C-l select-window -t :+
|
2015-12-10 07:30:34 -08:00
|
|
|
|
2018-02-19 04:11:07 -08:00
|
|
|
#bind ` copy-mode
|
|
|
|
#bind p paste-buffer
|
2014-11-07 10:24:28 -08:00
|
|
|
|
2014-11-09 16:44:54 -08:00
|
|
|
# Resize window with alt arrow keys
|
2014-11-07 10:24:28 -08:00
|
|
|
bind-key -n C-S-Up resize-pane -U 10
|
|
|
|
bind-key -n C-S-Down resize-pane -D 10
|
|
|
|
bind-key -n C-S-Left resize-pane -L 10
|
|
|
|
bind-key -n C-S-Right resize-pane -R 10
|
2014-11-09 16:44:54 -08:00
|
|
|
|
|
|
|
# Rename window with ctrl a r
|
2018-02-19 04:11:07 -08:00
|
|
|
#bind-key -r r command-prompt 'rename-window %%'
|
|
|
|
|
|
|
|
# Reorder windows
|
|
|
|
#bind R \
|
|
|
|
# move-window -r\; \
|
|
|
|
# display-message "Windows reordered..."
|
2014-11-09 16:44:54 -08:00
|
|
|
|
|
|
|
## pane border and colors
|
|
|
|
set-option -g pane-active-border-fg yellow
|
|
|
|
set-option -g pane-border-fg white
|