-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf.dotfile
65 lines (49 loc) · 1.87 KB
/
tmux.conf.dotfile
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
65
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Use Shift-arrow keys without prefix key to switch tabs
bind -n S-Left previous-window
bind -n S-Right next-window
# Use ALT-Shift keys to resize pane
bind-key -n M-S-Left resize-pane -L
bind-key -n M-S-Right resize-pane -R
bind-key -n M-S-Up resize-pane -U
bind-key -n M-S-Down resize-pane -D
# Use vim like split commands
bind-key v split-window -h -c "#{pane_current_path}"
bind-key s split-window -v -c "#{pane_current_path}"
bind C-j choose-session
# Reload tmux config
bind r source-file ~/.tmux.conf
# No delay for escape key press
set -s escape-time 0
# set vi key bindings
set-window-option -g mode-keys vi
# to open new windows in the current path
bind c new-window -c "#{pane_current_path}"
# fix MacOSX clipboard integration
# set-option -g default-command "reattach-to-user-namespace -l zsh"
set-option -g default-shell /bin/zsh
# MacOSX keyboard integration
set-window-option -g xterm-keys on
#### TPM (TMUX plugin manager)
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @resurrect-strategy-vim 'session'
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark' # or 'light'
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
##################################################################