-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
57 lines (47 loc) · 1.32 KB
/
tmux.conf
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
# Tmux settings
set -g status off
set -g base-index 0
setw -g mode-keys vi
setw -g xterm-keys on
set-option -g default-terminal "screen-256color"
set -g set-titles on
set -g set-titles-string '[TMUX] #(whoami)@#h'
set-option -g history-limit 50000
set -g pane-border-style fg=colour024,bg=colour233
set -g pane-active-border-style fg=colour024,bg=colour024
# First, unbind unused keys
unbind-key c # Create window
unbind-key n # Next window
unbind-key p # Previous window
unbind-key ! # Convert pane into window
unbind-key M-Up
unbind-key M-Down
unbind-key M-Left
unbind-key M-Right
unbind-key C-Up
unbind-key C-Down
unbind-key C-Left
unbind-key C-Right
# Remap prefix C-b to C-f
set -g prefix C-f
unbind C-b
bind C-f send-prefix
bind r source-file ~/.tmux.conf
bind q detach
# Remap window navigation to vim
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Remap wasd for resizing panes
bind-key w resize-pane -U 10
bind-key a resize-pane -L 10
bind-key s resize-pane -D 10
bind-key d resize-pane -R 10
bind-key W resize-pane -U 50
bind-key A resize-pane -L 50
bind-key S resize-pane -D 50
bind-key D resize-pane -R 50
# Scripted pane splitting
bind-key v command-prompt "run-shell '~/.dotfiles/tmux-split.sh v %1'"
bind-key n command-prompt "run-shell '~/.dotfiles/tmux-split.sh h %1'"