This repository has been archived by the owner on Jul 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
68 lines (66 loc) · 1.97 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
62
63
64
65
66
67
68
# change the default delay to make it more responsive
set -sg escape-time 1
# enable pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 5000
# start window index at 1
set -g base-index 1
# start pane index at 1
setw -g pane-base-index 1
# use vim key bindings
setw -g mode-keys vi
# enable xterm-keys
setw -g xterm-keys on
# reload config file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# change the prefix to Ctrl+a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# select prev/next window (no prefix)
bind -n 'C-Left' select-window -t :-
bind -n 'C-Right' select-window -t :+
# move to last active window
bind Space last-window
# Splitting panes
bind \ split-window -h
bind - split-window -v
# pane movements
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# pane resizing
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# pane resizing
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
# set copy paste method
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'C-v' rectangle-toggle
bind -t vi-copy 'y' copy-selection
bind -t vi-copy 'Space' halfpage-down
bind -t vi-copy 'Bspace' halfpage-up
# kill all other windows or panes
bind < confirm-before -p "kill all other windows (y/n)" "kill-window -a"
bind > confirm-before -p "kill all other panes (y/n)" "kill-pane -a"
# customize statusbar
set -g status-bg white
set -g status-fg black
set -g status-left-length 20
set -g status-left "#[bg=colour19,fg=white,bold] #S #[bg=colour26,fg=white,bold] w#I #[bg=colour33,fg=white,bold] p#P "
set -g status-right "%Y-%m-%d %H:%M #(whoami)@jmlog.com"
setw -g window-status-format " #I:#W#F"
setw -g window-status-current-format "#[fg=red,bold] #I:#W#F"
# customize pane border
set -g pane-border-fg colour235
set -g pane-active-border-fg colour243