aboutsummaryrefslogtreecommitdiffstats
path: root/.config/tmux/key-remappings.tmux
blob: 103722fd19d0638be09ef545408f48bd9fa053fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Remap prefix from 'C-b' to 'C-a'
#
# This works well if you remap the regular Caps Lock key to Ctrl.
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

# Remap pane splits to something more sane than the default.
# 
# Split panes using | for horizontal splits and - for vertical splits
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
bind-key c new-window -c "#{pane_current_path}"

# Easier configuration reloading and pane killing
bind-key r source-file ~/.tmux.conf \; display-message "Config reloaded!"
bind-key x kill-pane