chiark / gitweb /
dot/tmux.conf: Half-baked configuration for tmux.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 17 Mar 2016 10:31:44 +0000 (10:31 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 17 Mar 2016 10:31:44 +0000 (10:31 +0000)
It'll be a start if I want to do more work on it.

dot/tmux.conf [new file with mode: 0644]
setup

diff --git a/dot/tmux.conf b/dot/tmux.conf
new file mode 100644 (file)
index 0000000..06aaff3
--- /dev/null
@@ -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 90e6abaeaea3ae2b219bca7d25ae5d34551884cd..50964aef58a3cb75537183af32c615704f3e7f3e 100755 (executable)
--- 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