-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
64 lines (59 loc) · 2.25 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
# center windows
set-option -g status-justify centre
# binds
# reload .tmux.conf
bind r source-file ~/.tmux.conf \; display-message "reloading .tmux.conf"
# quit from within session
bind Q confirm-before -p "kill-session #S? (y/n)" kill-session
# create window next to current window (instead of on the end) by default
bind c new-window -a
# bind C new-window -a \; command-prompt -I "" "rename-window -- '%%'"
bind C command-prompt "new-window -an '%%'"
# dont insert previous name when renaming current window by default
bind , command-prompt -I "" "rename-window -- '%%'"
# split mimics current pane pwd
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -c "#{pane_current_path}"
# use alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
bind-key C-h swap-window -t -1\; select-window -t -1
bind-key C-l swap-window -t +1\; select-window -t +1
# -g = global
# -s = server
# = session
# -w = window
# -p = pane
set -g default-terminal "xterm-256color"
set -g window-status-separator " "
set -g escape-time 0
set -g status-interval 1
set -g base-index 1
set -g mode-keys "vi"
set -g visual-activity off
set -g monitor-activity on
set -g monitor-bell on
set -g window-status-activity-style bg=colour3,fg=colour237
set -g message-command-style bg=colour3,fg=black
set -g message-style bg=colour2,fg=black
set -g display-panes-active-colour green
set -g display-panes-colour red
set -g display-panes-time 2000
set -g renumber-window on
set -g clock-mode-style 24
set -g pane-active-border-style fg=brightgreen
set -g status-position bottom
set -g status-style bg="#282828",fg=white
set -g status-left-length 50
set -g status-left " #[bg=colour237] #S #[default]"
set -g status-right-length 50
set -g status-right-style align=right
# git repo name and branch
set -g status-right "#[bg=white fg=colour237] #(tmux-git-repo) #[bg=colour237 fg=white] #(tmux-git-branch) #[default] "
# window name and red tag
set -g window-status-style bg=colour237,fg=white
set -g window-status-current-style bg=white,fg=colour237
set -g window-status-format "#[bg=colour237 fg=white] #I#F #[default] #W "
set -g window-status-current-format "#[bg=colour237 fg=white] #I#F #[default] #W "