-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
44 lines (36 loc) · 1.49 KB
/
.tmux.conf
File metadata and controls
44 lines (36 loc) · 1.49 KB
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
set -g @plugin 'tmux-plugins/tmux-sensible'
set-window-option -gq utf8 on
set-window-option -g xterm-keys on
set -g xterm-keys on
set-option -g default-terminal "screen-256color"
set-window-option -g mode-keys vi
set -g base-index 1
set-option -g set-titles on
set-option -g set-titles-string "#h (#S)"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
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-option -ga update-environment 'DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY PATH'
# cheap powerline
# https://gist.github.com/alexyoung/6040385
set -g status on
set -gq status-utf8 on
# set -g status-keys vi
set -g status-fg white
set -g status-bg colour232
set -g status-right '#[bg=colour233] #[fg=white,bg=colour234] %T #[fg=yellow,bg=colour233] #[bg=colour232] '
set -g status-left '#[fg=#dadada,bg=colour232,bold] #S #[fg=colour254,bg=colour234,nobold]'
set -g window-status-format "#[fg=#dadada,bg=colour234] #I #[fg=colour231]#W #[fg=colour31,bg=colour234]"
set -g window-status-current-format "#[fg=#dadada,bg=colour31] #I #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
set -g window-status-separator ""
# open new pane/window in current directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"