-
Notifications
You must be signed in to change notification settings - Fork 5
/
.tmux.conf
61 lines (51 loc) · 1.62 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
# Unbind all keys
unbind-key -a
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
set -g default-shell $SHELL
set-option -g prefix C-x
set -s escape-time 0
setw -g aggressive-resize on
set -g base-index 0
set -g set-titles on
set-option -g set-clipboard on
set-option -g status-keys emacs
set-option -gw mode-keys emacs
bind-key s copy-mode
# emacs style
bind-key 1 resize-pane -Z
bind-key 2 split-window -v -c "#{pane_current_path}"
bind-key 3 split-window -h -c "#{pane_current_path}"
bind-key 0 kill-pane
bind-key Up select-pane -U
bind-key Right select-pane -R
bind-key Down select-pane -D
bind-key Left select-pane -L
bind-key + resize-pane -L 20
bind-key _ resize-pane -R 20
bind-key = resize-pane -U 5
bind-key - resize-pane -D 5
bind-key b new-window
bind-key k confirm-before -p "kill-pane #P? (y/n)" kill-pane
bind-key [ previous-window
bind-key ] next-window
bind-key { swap-window -t -1
bind-key } swap-window -t +1
bind-key n command-prompt "rename-window %%"
bind-key f choose-window
bind-key c confirm-before -p "kill-session #P? (y/n)" kill-session
bind-key z detach
bind r source-file ~/.tmux.conf \; display 'Config reloaded'
bind C-R source-file ~/.tmux.conf \; display 'Config reloaded'
set-option -g window-status-current-fg colour170
set-option -g pane-active-border-fg colour191
set -g window-style 'fg=colour243'
set -g window-active-style 'fg=colour253'
# danielmiessler/tmux
# Set status bar
set -g status-bg black
set -g status-fg colour240
set -g status-interval 1800
set -g status-left-length 90
set -g status-left "#[fg=colour191]#(curl ipecho.net/plain;echo) "
set -g status-justify left
set -g history-limit 999999