From f421d31d1b736268a313637e6aa11cd93c58e081 Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Fri, 29 May 2015 10:11:40 +0300 Subject: [PATCH] TMUX Updates configuration --- tmux.conf | 29 +++++++++++++++++++++++++++-- zshrc | 3 ++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/tmux.conf b/tmux.conf index 21ba11f..41dca0d 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,13 +1,20 @@ -pre: tmux set-option string-titles "#S" +# Rename your terminals +set -g set-titles on +set -g set-titles-string "#{client_session}::#h::#S" + +# Status bar customization +set -g status-utf8 on +set -g status-interval 5 set-option -g default-command "reattach-to-user-namespace -l zsh" # Enable mouse support in ~/.tmux.conf +set -g mode-mouse on set-option -g mouse-select-pane on set-option -g mouse-select-window on -set-window-option -g mode-mouse on # Better prefix +unbind C-b set-option -g prefix C-a # Show last window @@ -15,7 +22,25 @@ bind-key C-a last-window # Reasonable base-index set -g base-index 1 +setw -g pane-base-index 1 set -s escape-time 0 setw -g aggressive-resize on + +set -g main-pane-width 180 + +set-option -g history-limit 5000 + +# Remap window navigation to vim +unbind-key j +bind-key j select-pane -D +unbind-key k +bind-key k select-pane -U +unbind-key h +bind-key h select-pane -L +unbind-key l +bind-key l select-pane -R + +# Set a Ctrl-b shortcut for reloading your tmux config +bind r source-file ~/.tmux.conf diff --git a/zshrc b/zshrc index 512dcec..ee63da7 100755 --- a/zshrc +++ b/zshrc @@ -41,7 +41,7 @@ DISABLE_AUTO_UPDATE="true" # DISABLE_COMPLETION_WAITING_DOTS="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) -plugins=(autojump coffee extract git-flow-avh heroku npm ssh-agent tmux zsh-syntax-highlighting) +plugins=(coffee extract git-flow-avh ssh-agent tmux zsh-syntax-highlighting) source $ZSH/oh-my-zsh.sh # end oh-my-zsh @@ -103,6 +103,7 @@ HELPDIR=/usr/local/share/zsh/helpfiles # Profiling end # zprof +tmux list-sessions 2> /dev/null compinit # added by travis gem