-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
32 lines (28 loc) · 1.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
# set-option -g prefix C-`
unbind C-b
set -g prefix `
bind-key ` send-prefix
set-option -g status-interval 1
# set -g default-terminal "xterm-256color"
set-option -g default-terminal "screen-256color"
set -g status-position bottom
set -g status on
set -g status-bg colour234
set -g status-fg colour137
set -g status-left ''
set -g status-right '#{?#(cd #{pane_current_path};git rev-parse --abbrev-ref HEAD),#[fg=cyan]#{b:pane_current_path}#[fg=colour244]@#[fg=yellow]#(cd #{pane_current_path};git rev-parse --abbrev-ref HEAD),#[fg=cyan]#{b:pane_current_path}#[fg=colour50]} #[fg=colour255]%H:%M:%S#[default]'
set -g status-right-length 100
set -g status-left-length 20
setw -g mode-keys vi
set-option -sg escape-time 10
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
set-option -g history-limit 20000
# setup binding for new window to use current directory
bind-key c new-window -c "#{pane_current_path}"
# attach a scrach popup session
bind-key S if-shell -F '#{==:#{session_name},popup}' {
detach-client
} {
display-popup -d "#{pane_current_path}" -xC -yC -w 80% -h 75% -E 'tmux attach-session -t popup || tmux new-session -s popup'
}