Skip to content

Instantly share code, notes, and snippets.

@pgib
Last active December 2, 2017 09:54

Revisions

  1. pgib revised this gist Sep 12, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    Be sure to first run:

    brew install reattach-to-user-namespace
  2. pgib created this gist Jul 16, 2014.
    12 changes: 12 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # =======================================================================
    # vim-style copy and paste
    setw -g mode-keys vi
    bind ] paste-buffer
    bind-key -t vi-copy 'v' begin-selection
    bind-key -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy"
    bind-key -t vi-copy Space rectangle-toggle

    # 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"
    # =======================================================================