forked from koekeishiya/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
64 lines (49 loc) · 1.65 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
58
59
60
61
62
63
64
# set-option -g default-shell /opt/local/bin/zsh
set-option -g default-terminal "screen-256color"
set-option -g status-position bottom
set -g status-justify centre
set -g status-interval 2
# set -g status-right '%H:%M'
set -g status-right ''
set -g status-left ''
set -g status-fg white
set -g status-bg default
set -g renumber-windows on
set -g automatic-rename on
set-option -g -q mouse on
# set -g default-command "reattach-to-user-namespace -l zsh"
setw -g mode-keys vi
unbind v
bind v copy-mode
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe "pbcopy"
# bind-key -T copy-mode-vi 'y' send -X copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi 'Enter' send -X copy-pipe "pbcopy"
# bind-key -T copy-mode-vi 'Enter' send -X copy-pipe "reattach-to-user-namespace pbcopy"
set -g base-index 1
setw -g aggressive-resize on
set -sg escape-time 0
bind r source-file ~/.tmux.conf
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
bind x kill-pane
bind t set status
bind-key -n S-left prev
bind-key -n S-right next
bind-key -n C-left swap-window -t -1
bind-key -n C-right swap-window -t +1
setw -g window-status-format "#[bg=default,fg=colour8,reverse]▓▒░ #W ░▒▓"
setw -g window-status-current-format "#[bg=default,fg=colour10,reverse]▓▒░ #W ░▒▓"