-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
75 lines (58 loc) · 1.8 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
# set -g mouse on
set-window-option -g mode-keys vi
# install https://github.com/swaroopch/tmux-pomodoro
unbind M-p
unbind M-P
bind-key -n M-p run-shell 'pomo start'
bind-key -n M-P run-shell 'pomo clear'
# reload config
unbind M-r
bind -n M-r source-file ~/.tmux.conf \; display "Config reloaded"
# Improve colors
set -g default-terminal 'screen-256color'
# Set scrollback buffer to 10000
set -g history-limit 10000
# Customize the status line
set -g status-fg green
set -g status-left "[#S] #(pomodoro status) #{forecast}"
set -g status-bg black
set -g status-right "%b/%d %H:%M"
# split-panes
unbind M-h
unbind M-v
bind -n M-v split-window -h -c "#{pane_current_path}"
bind -n M-h split-window -v -c "#{pane_current_path}"
# navigation
bind -n M-l select-pane -R
bind -n M-k select-pane -D
bind -n M-j select-pane -U
bind -n M-h select-pane -L
# new window
unbind M-w
bind -n M-w new-window -c "#{pane_current_path}"
# kill window
unbind M-x
bind -n M-x command-prompt "kill-window -t '%%'"
# change window name
unbind M-n
bind -n M-n command-prompt "rename-window '%%'"
# next window
bind -n M-] next-window
bind -n M-[ previous-window
# copy mode
unbind -T copy-mode-vi Space;
unbind -T copy-mode-vi Enter;
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel --clipboard"
# PLUGIN TERRITORY
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'aaronpowell/tmux-weather'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'