-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
50 lines (36 loc) · 1.29 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
# scrollback size
set -g history-limit 10000
## Use vim keybindings in copy mode
set-option -g mouse on
set -g mouse on
setw -g mode-keys vi
# Set 256 colors
set -s default-terminal 'tmux-256color'
# source config file
bind r source-file ~/.tmux.conf
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# moving between panes with vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# ability to yank (y) to clipboard
set -g @plugin 'tmux-plugins/tmux-yank'
bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# colorscheme and minimize the statusbar
set -g @plugin 'dracula/tmux'
set -g @dracula-plugins "ram-usage" # <-- only view "ram-usage"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'