blob: c1a7e01591aceb247db489134ecec6b84646ee77 (
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
|
# Basic settings
set -g default-terminal "screen-256color"
set -as terminal-overrides ",*:Tc"
set -g mouse on
setw -g mode-keys vi
set -g status on
set -g history-limit 10000
set -g terminal-overrides ',*:Tc'
# Pass through bracketed paste
bind-key ] run-shell "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# Explicitly enable bracketed paste in terminals that support it
set-option -ga terminal-features ',xterm*:clipboard,bpaste'
# force bracketed-paste for modern terminals:
set -as terminal-overrides ',*:Ss=\E[%p1%d;%;%p2%ds,Se=\E[2u'
# Load theme from ~/.tmux/themes/selected.theme
if-shell 'test -f ~/.tmux/themes/selected.theme' "source-file ~/.tmux/themes/selected.theme"
# Fallback if no theme is selected
if-shell 'test ! -f ~/.tmux/themes/selected.theme' "display-message 'No theme selected. Create ~/.tmux/themes/selected.theme'"
|