Skip to content

Instantly share code, notes, and snippets.

@firewalker06
Last active September 16, 2015 03:45
Show Gist options
  • Save firewalker06/9c29ca858ee20efa0cbe to your computer and use it in GitHub Desktop.
Save firewalker06/9c29ca858ee20efa0cbe to your computer and use it in GitHub Desktop.
My Tmux Configuration
# explicitly disable mouse control
setw -g mode-mouse off
set -g mouse-select-pane off
set -g mouse-resize-pane off
set -g mouse-select-window off
# Disable window rename
set-option -g allow-rename off
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
# set Ctrl-a as the default prefix key combination
# and unbind C-b to free it up
set -g prefix C-a
unbind C-b
# use UTF8
set -g utf8
set-window-option -g utf8 on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 10000 (10k)
set -g history-limit 10000
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set-option -g default-command "reattach-to-user-namespace -l zsh"
brew install reattach-to-user-namespace
tmux list-keys -t vi-copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment