-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.tmux.conf
68 lines (51 loc) · 1.93 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
# Vim-like navigation
set -g mouse on
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Larger History
set -g history-limit 100000
bind-key : command-prompt
bind-key r refresh-client
bind-key L clear-history
bind x kill-pane
bind-key q confirm-before -p "Kill #S (y/n)?" "run-shell 'tmux switch-client -n \\\; kill-session -t \"#S\"'"
bind-key n command-prompt -I "" "new-session -s %%'"
# speed up tmux
set -s escape-time 10
set -g status-interval 0
# st
set -ga terminal-overrides "screen-256color:Tc"
set -g default-terminal "screen-256color"
bind-key w run-shell 'tmux choose-tree -Nwf"##{==:##{session_name},#{session_name}}"'
# Name tmux window by directory
set -g status-interval 1
# Put the status bar at the top
set-option -g status-position bottom
# Copying like vim
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
# Correct numbering of windows and panes
set -g base-index 1
setw -g pane-base-index 1
# Reload tmux
bind-key r source-file ~/.tmux.conf \; display-message "Reloaded config"
# Reload tmux config
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# Open New window in current path
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Paste with mouse
bind -n MouseDown2Pane run "tmux set-buffer -b primary_selection \"$(xsel -o)\"; tmux paste-buffer -b primary_selection"
set-option -g status-position bottom
bind-key s run-shell -b "/home/devon/.tmux/plugins/tmux-fzf/scripts/session.sh switch"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'lawabidingcactus/tmux-gruvbox-truecolor'
set -g @plugin 'sainnhe/tmux-fzf'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'