Skip to content

Instantly share code, notes, and snippets.

@Lytol
Created September 11, 2015 21:59
Show Gist options
  • Save Lytol/3dbe9318b877568364b2 to your computer and use it in GitHub Desktop.
Save Lytol/3dbe9318b877568364b2 to your computer and use it in GitHub Desktop.
# terminal with 256 color
set -g default-terminal "screen-256color"
# Clipboard fix for iterm + OS X
set-option -g default-command "reattach-to-user-namespace -l zsh"
# command prefix (like screen)
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# longer scrollback buffer
set-option -g history-limit 5000
# custom status
set-option -g status-bg blue
set-option -g status-fg white
set-option -g status-left-length 30
# vi-mode and copying
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy"
# custom bindings
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
unbind-key q
bind-key q confirm-before kill-session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment