-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
59 lines (47 loc) · 1.48 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
#changing prefix Ctrl-b to Ctrl-a
# set-option -g prefix C-a
# unbind C-b
# bind-key C-a send-prefix
#enabling mouse
set -g mouse on
set -g status-bg black
set -g status-fg white
#sourcing the file
bind r source-file ~/.tmux.conf
#making creation of panes easier
unbind '"'
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# colors in tmux
set-option -g focus-events on
set-option -sg escape-time 10
# set-option -g default-terminal "screen-256color"
set-option -g status-position top
set-option -g default-terminal "xterm-256color"
# set-option -a terminal-features 'screen-256color:RGB'
#resizing the panes
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
#make it into vi mode
setw -g mode-keys vi
#for copying
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard"
bind P paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard"
#plugins
set -g @plugin 'tmux-plugins/tpm'
#for nvim like navigation
set -g @plugin 'christoomey/vim-tmux-navigator'
##themepack
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'basic'
# saving the sessions
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-capture-pane-contents 'on'
# set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'