-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
48 lines (39 loc) · 1.57 KB
/
Copy path.tmux.conf
File metadata and controls
48 lines (39 loc) · 1.57 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
44
45
46
47
48
unbind r
bind r source-file ~/.tmux.conf
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
set-option -g history-limit 25000
set -g mouse on
# for neovim
set -sg escape-time 10
set-option -g focus-events on
# vi for copy mode
setw -g mode-keys vi
# status bar
set -g status-right "#[fg=colour216][#S] #[fg=colour216]#(echo #{pane_current_path} | sed 's,^'$HOME',~,')"
set -g status-right-length 140
set -g status-style "bg=black,fg=colour216,bold"
setw -g window-status-format " [#I] #W "
setw -g window-status-current-format "#[reverse] ~[#I] #W "
set-option -g pane-active-border-style "fg=colour154,bg=colour238"
set-option -g pane-border-style "bg=colour238"
set -g status-bg default
set -g status-position top
set -g status-interval 1
set -g status-left ""
set -g pane-border-status bottom
set -g pane-border-format "#[fg=black, bg=green] #{pane_index} #{@custom_pane_title}"
unbind <
bind < command-prompt -p "New Title: " -I "#{@custom_pane_title}" "set-option -p @custom_pane_title '%%'"
# count the panes from 1
set -g base-index 1
setw -g pane-base-index 1
# term colors, these are the correct ones according to neovim checkhealth
set-option -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# set-option -g default-terminal "tmux-256color"
# set -ag terminal-overrides ",xterm-256color:RGB"
# set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
# set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours