-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
89 lines (69 loc) · 2.41 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# set default shell
set-option -g default-shell /bin/zsh
# Mouse
set-option -g mouse on
# set Ctrl-q as the default prefix key combination
# and unbind C-b to free it up
set-option -g prefix '`'
unbind C-b
unbind C-q
set -g status-right "%H:%M %Z %a %m/%d/%y "
set-window-option -g mode-keys vi
# persistent window name
set-option -g allow-rename off
# copy and paste
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
# make tmux display things in 256 colors
set-option -g default-terminal "screen-256color"
# Renumber windows when a window is closed
set-option -g renumber-windows on
# use PREFIX | to split window horizontally and PREFIX - to split vertically
bind '\' split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# use send-prefix to pass ` through to application
bind '`' send-prefix
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Make the current window the first window
bind T swap-window -t 1
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# ---------------------- # Status Bar
# -----------------------
set-option -g status on # turn the status bar on
set -g status-interval 2 # set update frequencey (default 15 seconds)
set -g status-justify left
# set-option -g status-position top # position the status bar at top of screen
# set color for status bar
# set-option -g status-fg yellow #brightblue
# set-option -g status-attr dim
# set -g status-bg blue
# set -g status-fg black
set -g status-bg colour153
set -g status-fg colour254
#Evil mouse settings
##scroll buffer
# setw -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
# set -g mouse-select-window on
#setw -g mode-mouse off
# tmux plugin manager: github.com/tmux-plugins/tpm
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# github_username/plugin_name \
# git@github.com/user/plugin \
# git@bitbucket.com/user/plugin \
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'