forked from PrettyBoyCosmo/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
62 lines (53 loc) · 1.61 KB
/
.tmux.conf
File metadata and controls
62 lines (53 loc) · 1.61 KB
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
# ~/.tmux.conf
# tmux configuration
# created by : bluecosmo
# minimal setup
# unbind r
# bind r source-file ~/.tmux.conf
# set-option -g prefix C-Space
# set -g mouse on
# bind-key h select-pane -L
# bind-key j select-pane -D
# bind-key k select-pane -U
# bind-key l select-pane -R
# refresh binding
unbind r
bind r source-file ~/.tmux.conf
# navigation
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key -n C-M-h resize-pane -L 3
bind-key -n C-M-j resize-pane -D 3
bind-key -n C-M-k resize-pane -U 3
bind-key -n C-M-l resize-pane -R 3
# keep current working directory across panes
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
# options
set -g mouse on
setw -g mode-keys vi
set-option -g prefix C-Space
set-option -g status-position top
set-option -g default-shell /bin/xonsh
set -g pane-active-border-style fg=#FFFFFF
# copy mode (vim keybinds)
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip"
bind P paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip"
# tpm
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'christoomey/vim-tmux-navigator'
# status bar theme
set -g @plugin 'niksingh710/minimal-tmux-status'
set -g @minimal-tmux-bg "#ccffff"
set -g status-left-length 15
set -g @minimal-tmux-indicator-str "$USER"
set -g @minimal-tmux-status "bottom"
set -g @minimal-tmux-justify "centre"
bind-key b set-option status
# run tpm
run '~/.tmux/plugins/tpm/tpm'