-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.tmux.conf
57 lines (43 loc) · 1.74 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
set-option -g default-shell "/usr/local/bin/zsh"
#set-option -g default-path $HOME
set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ',screen-256color:RGB'
unbind C-b
set -g prefix C-q
bind C-q send-prefix
# start window index of 1
#set-option -g base-index 1
#setw -g pane-base-index 1
# active window title colors
set -g window-status-current-format "#[fg=white,bg=red] #I:#W* "
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-selection-and-cancel
# -n means no prefix
bind -n F11 previous-window
bind -n F12 next-window
bind-key -r j select-pane -D
bind-key -r k select-pane -U
bind-key -r h select-pane -L
bind-key -r l select-pane -R
#set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g set-titles on
set-option -g history-limit 10000
# active window title colors
#set-window-option -g window-status-current-fg colour166 #orange
#set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
set -g status-right '#(hostname)'
set-option -sg escape-time 10
# pbcopy / pbpaste mac, https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
# not need for Tmux 2.6+, https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/issues/66
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# set-window-option -g mode-keys vi
# bind-key -T copy-mode-vi v send -X begin-selection
# bind-key -T copy-mode-vi y send -X copy-pipe "reattach-to-user-namespace pbcopy"
# unbind -T copy-mode-vi Enter
# bind-key -T copy-mode-vi Enter send -X copy-pipe "reattach-to-user-namespace pbcopy"
# required by neovim
set-option -g focus-events on