Skip to content

Instantly share code, notes, and snippets.

@rmrio
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save rmrio/b4a2a0a51b67b0adfc08 to your computer and use it in GitHub Desktop.

Select an option

Save rmrio/b4a2a0a51b67b0adfc08 to your computer and use it in GitHub Desktop.
.tmux.conf
# tmux a every time!
new-session
# enable touchpad
set-window-option -g mode-mouse on
#
set -g history-limit 30000
# look good
set -g default-terminal "screen-256color"
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# 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"
@rmrio
Copy link
Author

rmrio commented May 13, 2015

brew install reattach-to-user-namespace first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment