Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Created March 16, 2013 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahemoff/5176921 to your computer and use it in GitHub Desktop.
Save mahemoff/5176921 to your computer and use it in GitHub Desktop.
set -s escape-time 0
set -g base-index 1
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
set -g history-limit 30000
set-option -g default-command "reattach-to-user-namespace -l bash"
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
setw -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
@burningTyger
Copy link

I have a slightly different setting:

set -g mode-mouse on
set-window-option -g mode-mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'

@fiorix
Copy link

fiorix commented Mar 18, 2014

@burningTyger 's config worked for me

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