Skip to content

Commit

Permalink
TMUX Updates configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
deiga committed May 29, 2015
1 parent 5f5ef93 commit f421d31
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
29 changes: 27 additions & 2 deletions tmux.conf
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
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
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
3 changes: 2 additions & 1 deletion zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -103,6 +103,7 @@ HELPDIR=/usr/local/share/zsh/helpfiles
# Profiling end
# zprof

tmux list-sessions 2> /dev/null

compinit
# added by travis gem
Expand Down

0 comments on commit f421d31

Please sign in to comment.