summaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '.tmux.conf')
-rwxr-xr-x.tmux.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100755
index 0000000..c1a7e01
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,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'"
+