# HG changeset patch # User nanaya # Date 1469367714 -32400 # Node ID 756cfd9f5bc8fddb912f6472ac11c2d79f578f0b # Parent 7fbadf8bd22ec1b6b5247dd4e59589d80d10be75 Add tmux 2.2+ config diff -r 7fbadf8bd22e -r 756cfd9f5bc8 rc/bashrc --- a/rc/bashrc Thu Jul 07 15:59:06 2016 +0900 +++ b/rc/bashrc Sun Jul 24 22:41:54 2016 +0900 @@ -293,7 +293,8 @@ ;; *) case "$(tmux -V 2> /dev/null)" in - "tmux 1."[1-9][0-9][0-9]*|"tmux 1.9"*|"tmux 2."*) _tmux_conf_ver=1.9;; + "tmux 2."[2-9]|"tmux 2."[1-9][0-9][0-9]*) _tmux_conf_ver=2.2;; + "tmux 1.9"|"tmux 1."[1-9][0-9][0-9]*|"tmux 2."[0-1]) _tmux_conf_ver=1.9;; "tmux 1."[4-8]) _tmux_conf_ver=1.4;; *) _tmux_conf_ver=1.3;; esac diff -r 7fbadf8bd22e -r 756cfd9f5bc8 rc/tmux-2.2.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rc/tmux-2.2.conf Sun Jul 24 22:41:54 2016 +0900 @@ -0,0 +1,19 @@ +set -g repeat-time 0 +set -g status-bg cyan +set -g status-fg black + +set -g status-left '#[bg=white,fg=black] #S #[default] ' + +set -g status-right '#[bg=white,fg=black] #H #[bg=black,fg=white] %b-%d %H:%M ' + +set -g pane-active-border-fg cyan + +set -g set-titles on +set -g set-titles-string '[#S] #I:#W #T' + +setw -g window-status-current-bg black +setw -g window-status-current-fg white + +bind-key c new-window -c "#{pane_current_path}" +bind-key '"' split-window -c "#{pane_current_path}" +bind-key % split-window -h -c "#{pane_current_path}"