44 lines
938 B
Bash
44 lines
938 B
Bash
# 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 %
|
|
bind \\ split-window -h
|
|
bind - split-window -v
|
|
|
|
# vim keybindings
|
|
setw -g mode-keys vi
|
|
unbind [
|
|
bind Escape copy-mode
|
|
unbind p
|
|
bind p paste-buffer
|
|
bind-key -Tcopy-mode-vi v send -X begin-selection
|
|
bind-key -Tcopy-mode-vi y send -X copy-selection
|
|
|
|
# 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
|
|
set-window-option -g window-status-current-style bg=blue
|
|
|
|
# Statusbar Tweaking
|
|
set -g status-bg black
|
|
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
|