-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.tmux.conf
69 lines (55 loc) · 1.88 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
69
# An easier on the fingers prefix key
set -g prefix M-l
set -g prefix2 C-l
# Split windows using vi keys
bind-key v split-window -h
bind-key S split-window -v
bind-key s choose-session
# Switch panes using vi keys
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Kill other panes
bind-key m kill-pane -a
# Kill current pane
bind-key x kill-pane
bind-key -n M-o select-pane -l
# Use vi like bindings in the copy mode
set -s copy-command 'wl-copy'
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "wl-copy"
# Enable the mouse in Tmux
set -g mouse on
# Use emacs bindings in the command mode
set -g status-keys emacs
# Focus events enabled for terminals that support them
set -g focus-events on
# Increase scrollback buffer size from 2000 to 50000 lines
set -g history-limit 50000
# Increase tmux messages display duration from 750ms to 4s
set -g display-time 4000
# Upgrade $TERM
set -g default-terminal "xterm-256color"
# Enable true color support
set -as terminal-features ",*:RGB"
set -ag terminal-overrides ",xterm-256color:RGB"
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
#################
## STATUS LINE ##
#################
set -g status-interval 60
# Basic status bar colors
# set -g status-style bg=green
# set -g status-style fg=white
# set -g message-style bg=white,fg=brightred
# set -g message-command-style bg=white,fg=brightred
# set -g status-right-style fg=black
# set -g window-status-current-style fg=black,bg=white
set -g status-left "#S [git:#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD)] "
set -g status-left-length 100
set -g status-right "#([ -f Pulumi.yaml ] && echo \"Stack: $(pulumi stack --show-name) |\") #(hostname) | %H:%M %Y-%m-%d "
set -g status-right-length 400
set -g window-status-format " #I:#W#F "
set -g window-status-current-format " #I:#W#F "