-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
55 lines (40 loc) · 1.29 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
# Set colors
set -g default-terminal "screen-256color"
set -g default-shell /bin/zsh
# Rebind tmux key to Ctrl-A
set-option -g prefix C-a
# Bind Ctrl-A x 2 to last-window
bind-key h previous-window
bind-key l next-window
bind-key j select-pane -t :.-
bind-key k select-pane -t :.+
# Open new panes and windows in current path
bind-key c new-window -c '#{pane_current_path}'
bind-key '"' split-window -c '#{pane_current_path}'
bind-key % split-window -h -c '#{pane_current_path}'
# Use vi mode keys
setw -g mode-keys vi
# Reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Highlight active window
set-option -g status-style bg=black,fg=yellow
set-window-option -g window-status-style bg=black,fg=white
set-window-option -g window-status-current-style bg=green,fg=black
#fix cmd-a
bind a send-prefix
#fix alt-arrow movement
set-window-option -g xterm-keys on
#history buffer
set -g history-limit 50000
#fix escape delay
set -sg escape-time 0
#vim focus events integration
set -g focus-events on
# mouse stuff
set-option -g mouse on
# copy/paste
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy"
set-option -g update-environment "SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
# allow base16 colors
set -g allow-passthrough 1