Updated tmux to clean up formatting and also change keybindings for moving between splits and to set the index to 1 so default window isnt [prefix]-0
29 lines
622 B
Bash
29 lines
622 B
Bash
#change C-b to Ca
|
|
unbind C-b
|
|
set-option -g prefix C-a
|
|
bind-key C-a send-prefix
|
|
|
|
# split panes using | and -
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
unbind '"'
|
|
unbind %
|
|
|
|
# enable mouse control (clickable windows, panes, resizable panes)
|
|
# as of tmux 2.1 you can just do this ...
|
|
set -g mouse on
|
|
|
|
# stop tmux from renaming the window every time you run a command
|
|
set-option -g allow-rename off
|
|
set-option -g pane-active-border-fg blue
|
|
|
|
# select panes with vim keys
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
# change base from 0 to 1 for reachability
|
|
set -f base-index 1
|
|
|