Skip to content

Commit

Permalink
Adds tmux.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpeabody committed Apr 13, 2012
1 parent 502eb80 commit ef347cd
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions conf/tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Control a prefix.
set -g prefix C-a

# Reload tmux.conf
bind r source-file ~/.tmux.conf \; display "Reloaded .tmux.conf"

# ; gets you to command mode
bind \; command-prompt

# Remove delay
set -sg escape-time 1

# Start numbering at 1 (easier to switch between a few screens)
set -g base-index 1
setw -g pane-base-index 1

# Map splits
bind | split-window -h
bind - split-window -v

# Map moving panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Map pane resizing
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5

# Act like vim
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection

# More room for status left
set -g status-left-length 30

0 comments on commit ef347cd

Please sign in to comment.