From 3fffcb381e8a7025fff56078d3a466d1918f1802 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Sat, 14 Mar 2026 20:22:41 -0400 Subject: [PATCH] Add initial tmux configuration --- tmux/.tmux.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tmux/.tmux.conf diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..b984441 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,25 @@ +# prefix+r to reload +bind r source-file ~/.tmux.conf \; display "Config reloaded!" + +# long history, 2k default +set-option -g history-limit 100000 + +# vi-style key bindings in copy mode, etc +set-window-option -g mode-keys vi + +# Trying out mouse mode for now, use shift to bypass to local emulator +bind-key m set-option -g mouse \; display "Mouse: #{?mouse,ON,OFF}" +set -g mouse on +set -g terminal-overrides 'xterm*:smcup@:rmcup@' + +# F12 to toggle whether tmux commands affect local or nested (remote) session +bind -T root F12 \ + set prefix None \;\ + set key-table off \;\ + refresh-client -S + +bind -T off F12 \ + set -u prefix \;\ + set -u key-table \;\ + refresh-client -S +