Skip to content

Instantly share code, notes, and snippets.

@cacoco
Created November 7, 2012 18:44
Show Gist options
  • Save cacoco/4033534 to your computer and use it in GitHub Desktop.
Save cacoco/4033534 to your computer and use it in GitHub Desktop.
Tmux sensible defaults
set-option -g prefix C-a
bind-key C-a last-window
# Get scrolling in pane to work
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Set up horizontal and vertical splitting
unbind %
bind \ split-window -h
bind - split-window -v
# Re-map moving between windows to Vim keys
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment