-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
62 lines (44 loc) · 1.49 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
# https://coderwall.com/p/jpsa7q/tmux-windows-and-pane-split-s-on-current-directory
bind-key c new-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"
bind -t vi-copy y copy-pipe "xclip -sel clip -i"
# https://stackoverflow.com/questions/10543684/how-can-i-clear-scrollback-buffer-in-tmux
bind -n C-k clear-history
set-option -g allow-rename off
set -g history-limit 6000
# Windows
set -g base-index 1
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# https://unix.stackexchange.com/questions/269537/how-do-i-make-the-tmux-rename-window-prompt-empty-by-default
bind-key , command-prompt "rename-window '%%'"
# Panes
setw -g pane-base-index 1
# Pane movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Change to Last window
bind b last-window
# Change to next window (default PREFIX n)
# bind n next-window
# Change to prev window (default PREFIX p)
# bind -r H resize-pane -L 5
# bind -r J resize-pane -D 5
# bind -r K resize-pane -U 5
# bind -r L resize-pane -R 5
# Reload ~/.tmux.conf
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# set -g status-left "#[fg=red][#S]"
set -g status-justify centre # left
setw -g monitor-activity off
set -g visual-activity off
# STYLE
set -g status-fg white
set -g status-bg black
# colour22
setw -g window-status-current-fg white
setw -g window-status-current-bg green
setw -g window-status-current-attr bright