Skip to content

Instantly share code, notes, and snippets.

@Lytol Lytol/tmux.conf
Created Sep 11, 2015

What would you like to do?
# 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
You can’t perform that action at this time.