summaryrefslogtreecommitdiff
path: root/user-profiles/tmux/tmux.conf
blob: 415d13e76449662c01b5c525942828b7c8ae0799 (plain)
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
set-option -g history-limit 50000
set-option -g status-bg black
set-option -g status-fg white
set-option -g clock-mode-colour white
set-option -g clock-mode-style 24
set-option -g bell-action any
set-option -g default-shell @zsh@/bin/zsh
set-option -g update-environment 'DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY PROMPT_INFO PATH PGHOST PGLOG'
set-option -g mouse on
set-option -g set-clipboard on
set-option -g terminal-overrides 'rxvt-uni*:XT:Ms=\E]52;%p1%s;%p2%s\007'

set-environment -g LESS " -R "

## determine if we should enable 256-colour support
if "[[ ''${TERM} =~ 256color || ''${TERM} == fbterm || ''${TERM} =~ alacritty ]]" 'set -g default-terminal tmux-256color'

set-option -g status-right ""

bind / command-prompt "split-window -h 'exec @mandb@/bin/man %%'"
bind C clock-mode
bind r switch-client -r

bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D