-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
58 lines (43 loc) · 1.65 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
# .tmux.conf
# Let tmux know it's running in 256 color mode
set -g default-terminal "xterm-256color"
# Enable xterm-keys
# set-option -g xterm-keys on
# vim bindings
set -g mode-keys vi
# y and p as in vim
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
bind-key -T copy-mode-vi 'Space' send -X halfpage-down
bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up
# extra commands for interacting with the ICCCM clipboard
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
# Fix home / end keys
bind -n End send-key C-e
bind -n Home send-key C-a
# Turn on mouse mode
set -g mouse on
# Change bindings
bind-key C-b last-window
bind-key k confirm kill-window
bind-key K confirm kill-server
bind-key r source-file ~/.tmux.conf
# Make numbering start at 1
set -g base-index 1
# Change escape sequence time
set -s escape-time 1
# Turn on aggressive resize
setw -g aggressive-resize on
set -g status-left ""
set -g status-right "#[fg=green]#T %H:%M"
# Make the formatting of open panes look nice
set-window-option -g window-status-current-format '#[fg=red,bold][#[fg=white,bold]#{window_index}#[fg=green] #(echo "#{pane_title}" | sed -e "s/.*: //" | cut -d\ -f 1,2)#[fg=white]*#[fg=red,bold]]'
set-window-option -g window-status-format '#[fg=red,bold][#[fg=white,bold]#{window_index}#[fg=blue] #(echo "#{pane_title}" | sed -e "s/.*: //" | cut -d\ -f 1,2) #[fg=white]#[fg=red,bold]]'
set -g set-titles on
set -g set-titles-string "#T"
set -g status-bg black
set -g status-fg magenta