X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tmux.conf.in;h=c748eea2eaa38ba2cf3bc44c615f8e9e8a1ab0b0;hb=3085f6d8af8bd80ae2a7bd8f1e03450855caa78a;hp=33d1c1e8519539db184c10210a5e272c4dba3ddd;hpb=5f758c4b7199c4993bcbe404617c1742fbeb6b4b;p=config%2Fdotfiles.git diff --git a/tmux.conf.in b/tmux.conf.in index 33d1c1e..c748eea 100644 --- a/tmux.conf.in +++ b/tmux.conf.in @@ -23,10 +23,14 @@ # GENERAL +# Use Zsh as shell. Tmux does not display a warning if the shell isn't +# available! +set-option -g default-shell "/bin/zsh" + # Use a larger window history, in lines. set-option -g history-limit 10000 -# Display messages for three seconds. +# Display Tmux messages for a longer time, in milliseconds. set-option -g display-time 3000 # Open new windows with the current working directory used when Tmux was @@ -36,6 +40,9 @@ set-option -g default-path "." # TERMINAL +# Enable 256 color mode. +set-option -g default-terminal "screen-256color" + # Disable alternative screen feature. This way e.g. Vim's window content stays # visible after quitting Vim. This is quite useful to copy data (needs tmux # 1.5 to work (almost) completely). @@ -58,7 +65,7 @@ set-option -g status-bg colour12 # Nothing left of window list. set-option -g status-left "" -# Current load average and hostname on the right. +# Current load average and hostname (#H) on the right. set-option -g status-right "#(uptime | sed 's/^.*load averages*: //; s/,//g') \ #H" @@ -106,4 +113,9 @@ bind-key C-b capture-pane \; \ save-buffer ~/.tmp/tmux-urlview \; \ new-window "$SHELL -c 'urlview < ~/.tmp/tmux-urlview'" +# Binding for fast switching to windows 10 to 29 (and more if necessary). +# Thanks to Kays in #irssi on Freenode (2012-10-18 16:25 CEST) for reminding +# me of this issue in Tmux. See tmux-windows.pl for details how it works. +bind-key \; source-file "TMUX_WINDOW_PATH" + # vim: ft=tmux