-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.tmux.conf
59 lines (48 loc) · 2.02 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
# tmux cheatsheet
# https://gist.github.com/MohamedAlaa/2961058
#
# tmux customizations
# http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# options
set-option -g mouse on # enable mouse support in gnome (though u still should know this)
set-option -g allow-rename off # disable tmux renaming the panes (use "," to name them)
set-option -g history-limit 100000 # increase the scroll back buffer size
# key bindings
#bind -n WheelUpPane copy-mode # Start copy mode when scrolling up
bind h split-window -h # split window horizonally
bind v split-window -v # split window vertically
#bind -t vi-copy y copy-pipe "xclip"
# revert 3.x sorting back to alphanumeric
bind s choose-tree -s -O name
# making window-switching more like i3wm
bind-key -n M-0 select-window -t 0
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
#setw -g xterm-keys on
# fixing 256 colors
set -g default-terminal "screen-256color"
# macOS fix for clipboard, vim/nvim, tmux and iterm2 (yikes)
if-shell "uname | grep -q Darwin" "set -g default-shell $SHELL"
if-shell "uname | grep -q Darwin" "set -g default-command \"reattach-to-user-namespace -l ${SHELL}\""
# status lines
if-shell "test -f ~/.tmux/tmuxline.conf" "source ~/.tmux/tmuxline.conf"
#set -g status-right '#[fg=red]Continuum: #{continuum_status} #[bg=yellow]#[fg=white] %d %b %Y%l:%M %p'
# plugins
run-shell ~/.tmux/plugins/tmux-yank/yank.tmux
# persisting commands
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
#set -g @continuum-save-interval '15'
#set -g @continuum-restore 'on'
#run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
# fixing timeout issues
set-option -sg escape-time 10