-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
69 lines (53 loc) · 2.23 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
# Check if the current machine has a terminfo configuration for "tmux-256color".
# If it does, set that as the terminal inside tmux. Otherwise, the next best
# option is screen-256color, which will still display colors correctly with
# ncurses and emacs (and even work with true color). However, it does not
# support italics.
if-shell "if [[ -e /usr/share/terminfo/t/tmux-256color ]]; then true; else false; fi" \
"set -g default-terminal 'tmux-256color'" \
"set -g default-terminal 'xterm-256color'"
# Support truecolor
set -ga terminal-overrides ",xterm-termite:Tc,xterm-256color:Tc,alacritty:Tc"
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
# Use zsh for the shell
set -g default-command "zsh"
# Remove escape delay
set -s escape-time 0
# Use vi-like key bindings for copy-mode
setw -g mode-keys vi
# Use emacs-like key bindings for command prompt
set -g status-keys emacs
# Scroll back 100,000 lines
set -g history-limit 100000
# Enable the mouse
set -g mouse on
unbind C-b
set -g prefix C-o
bind C-o send-prefix
set -g status-style bg="black"
# set -ag status-style fg="magenta"
# set -g message-style bg="magenta"
# set -ag message-style fg="black"
# set -g pane-border-style fg="colour235"
# set -g pane-active-border-style fg="magenta"
set -g status-left-length 50
set -g status-right-length 150
# Right arrow: ▶
# thin: ❯
# Left arrow: ◀
# thin: ❮
# set -g status-left '#[fg=cyan] #S #[fg=magenta]#(whoami)@#(hostname -s) '
# set -g window-status-format ' #[fg=white]#I #W '
# set -g window-status-current-format '#[fg=red,bg=black,bold] #I #W '
# set -g status-right ' #[fg=green]#(uptime | rev | cut -d":" -f1 | rev | sed s/,//g ) #[fg=blue]#(date +"%R") #(date +"%B %d, %Y") '
set -g status-left ' #S #(whoami)@#(hostname -s) '
set -g window-status-format ' #I #W '
set -g window-status-current-format '#[bold] #I #W '
set -g status-right ' #(uptime | rev | cut -d":" -f1 | rev | sed s/,//g ) #(date +"%R") #(date +"%B %d, %Y") '
# Refresh every two seconds
set -g status-interval 2
# Index windows and panes from 1
set -g base-index 1
setw -g pane-base-index 1
# Resize window based on smallest client currently viewing (rather than currently connected)
setw -g aggressive-resize on