-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
62 lines (52 loc) · 1.29 KB
/
tmux.conf
File metadata and controls
62 lines (52 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Re-define the prefix key
#
# the send-prefix option is important because it keeps
# bash's ^a (go to beginning of line) functioning
# (albeit with an extra keypress)
set -g prefix C-a
unbind C-b
bind a send-prefix
# general settings
#
# starting window-indexing at 1 makes it easier to switch
# windows using prefix+<number>
#set -g default-command /bin/zsh
set-option -g default-shell /bin/zsh
set -g default-terminal "screen-256color"
set -g base-index 1
# unbind/free unnecessary keys
unbind %
unbind l
# unbind/free arrow keys
unbind Left
unbind Right
unbind Up
unbind Down
# define window split keys
bind - split-window -h
bind _ split-window -v
# use vi-style navigation instead of arrow-keys
bind l select-pane -R
bind k select-pane -U
bind h select-pane -L
bind j select-pane -D
# ...and the same keys to resize
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
# vi-style copy mode
setw -g mode-keys vi
unbind [
bind v copy-mode
bind P paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# rebind these (because at least p seems to get overwritten
# by the vi-stuff above)
bind p prev
bind n next
# thicker lines
set -g pane-active-border-bg green
# reload/refresh/whatever
bind r source ~/.tmux.conf