2013-10-28 13:41:02 +00:00
|
|
|
# Set C-d as detach
|
|
|
|
unbind d
|
|
|
|
bind C-d detach
|
|
|
|
|
|
|
|
# Start counting at 1 instead of 0
|
|
|
|
set -g base-index 1
|
|
|
|
|
|
|
|
# Window splitting
|
|
|
|
unbind %
|
2022-11-01 04:38:19 +00:00
|
|
|
bind \\ split-window -h
|
2013-10-28 13:41:02 +00:00
|
|
|
bind - split-window -v
|
|
|
|
|
|
|
|
# vim keybindings
|
|
|
|
setw -g mode-keys vi
|
|
|
|
unbind [
|
|
|
|
bind Escape copy-mode
|
|
|
|
unbind p
|
|
|
|
bind p paste-buffer
|
2022-11-01 04:38:19 +00:00
|
|
|
bind-key -Tcopy-mode-vi v send -X begin-selection
|
|
|
|
bind-key -Tcopy-mode-vi y send -X copy-selection
|
2013-10-28 13:41:02 +00:00
|
|
|
|
|
|
|
# vim movement
|
|
|
|
set-window-option -g mode-keys vi
|
|
|
|
bind h select-pane -L
|
|
|
|
bind j select-pane -D
|
|
|
|
bind k select-pane -U
|
|
|
|
bind l select-pane -R
|
|
|
|
|
|
|
|
# vim resizing
|
|
|
|
# Pane resizing
|
|
|
|
bind -r C-h resize-pane -L 5
|
|
|
|
bind -r C-j resize-pane -D 5
|
|
|
|
bind -r C-k resize-pane -U 5
|
|
|
|
bind -r C-l resize-pane -R 5
|
|
|
|
|
|
|
|
# Highlight active window
|
2022-11-01 04:38:19 +00:00
|
|
|
set-window-option -g window-status-current-style bg=blue
|
2013-10-28 13:41:02 +00:00
|
|
|
|
|
|
|
# Statusbar Tweaking
|
2022-11-01 04:38:19 +00:00
|
|
|
set -g status-bg black
|
2013-10-28 13:41:02 +00:00
|
|
|
set -g status-fg white
|
|
|
|
set -g status-left '#[fg=magenta]#H'
|
|
|
|
set -g status-right '#[fg=blue]#(uptime | cut -d "," -f 4-)'
|
|
|
|
set -g status-interval 1
|