From 4d60a7ac95f814edd26bc558b486968a5a0728a0 Mon Sep 17 00:00:00 2001 Message-Id: <4d60a7ac95f814edd26bc558b486968a5a0728a0.1718677111.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 17 Mar 2016 10:31:44 +0000 Subject: [PATCH] dot/tmux.conf: Half-baked configuration for tmux. Organization: Straylight/Edgeware From: Mark Wooding It'll be a start if I want to do more work on it. --- dot/tmux.conf | 21 +++++++++++++++++++++ setup | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 dot/tmux.conf diff --git a/dot/tmux.conf b/dot/tmux.conf new file mode 100644 index 0000000..06aaff3 --- /dev/null +++ b/dot/tmux.conf @@ -0,0 +1,21 @@ +### -*-conf-*- + +## pterm compatibility. The default settings for these cause tmux to send +## pterm some control sequences it doesn't understand, with ^G as a +## terminator, which results in annoying and unnecessary dinging. Since the +## problematic control sequences are only to do with frobbing the cursor +## shape anyway, just clobber them. +set -g terminal-overrides "*:Cr=:Cs=:Ms=" +set -ga terminal-overrides ",*88col*:colors=88,*256col*:colors=256" +set -ga terminal-overrides ",xterm*:XT,screen*:XT" + +## Sane key-bindings. I'm used to screen. Bite me. +set -g prefix C-z +bind z send C-z +bind C-z last-window +bind c new-window +bind C-c new-window +bind Tab select-pane -t.+1 +bind M-Tab select-pane -t.-1 +bind Q break-pane +bind S split-window diff --git a/setup b/setup index 90e6aba..50964ae 100755 --- a/setup +++ b/setup @@ -153,7 +153,7 @@ dotfiles=" swank.lisp mdw-build.conf:.config/mdw-build.conf w3m-config:.w3m/config elinks.conf:.elinks/elinks.conf - dircolors colordiffrc screenrc cvsrc indent.pro" + dircolors colordiffrc screenrc tmux.conf cvsrc indent.pro" [ "$xstuff" ] && dotfiles="$dotfiles xinitrc xsession xmodmap vncrc vncsession fonts.conf -- [mdw]