Skip to content

Problems copying text on Mac OS Sierra #543

@rtfpessoa

Description

@rtfpessoa

Mac OS Sierra, using latest tmux 2.2 with latest reattach-to-user-namespace 2.5.

Copy stopped working

If I do ls | pbcopy pbcopy is working but when I use y, Enter or mouse selection I can never copy the text.
I also enabled both options on iterm 2 to have integration.

I have this settings:

# set Zsh as your default Tmux shell
set-option -g default-shell /usr/local/bin/zsh

# Patch for OS X pbpaste and pbcopy under tmux.
set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL"

# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy r rectangle-toggle
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "pbcopy"

# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "pbcopy"

# Mouse copy
bind-key -t vi-copy MouseDragEnd1Pane copy-pipe "pbcopy"

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions