Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS 'reattach-to-user-namespace' wrapper no longer required in tmux 2.6 #42

Open
benjaminblack opened this issue Nov 20, 2017 · 4 comments

Comments

@benjaminblack
Copy link

See: ChrisJohnsen/tmux-MacOSX-pasteboard#66

Try, e.g., bind-key -T copy-mode C-\ send-keys -X copy-pipe-and-cancel "pbcopy"

@karismatic-megafauna
Copy link

I am still getting this error in whenever I make a new split.

Could this line be the culprit?
https://github.com/tmux-plugins/tmux-sensible/blob/master/sensible.tmux#L97

pgilad added a commit to pgilad/dotfiles that referenced this issue Dec 1, 2019
@astahlman
Copy link

@karismatic-megafauna FWIW, I too was seeing this message upon opening a new split and originally suspected that line. However, I ruled it out as the cause of the error after I started tmux with an empty config and still saw the same error: tmux -f /dev/null.

Updating reattach-to-user-namespace via homebrew eventually fixed it for me: brew update && brew upgrade reattach-to-user-namespace

@dannykansas
Copy link

dannykansas commented Feb 11, 2020

Updating to the latest reattach-to-user-namespace resolved this issue for me as well.

Would it be possible to offer a more useful error message through tmux, e.g. suggesting an update to reattach-to-user-namespace?

For reference, the version that resolves this issue is:

$ reattach-to-user-namespace --version
reattach-to-user-namespace version 2.8
    Supported OSes: OS X 10.5-10.15

aguil pushed a commit to aguil/dotfiles that referenced this issue May 31, 2020
andreaswachowski added a commit to andreaswachowski/dotfiles that referenced this issue Jan 25, 2021
mrzool added a commit to mrzool/dotfiles that referenced this issue Sep 16, 2021
@xukai92
Copy link

xukai92 commented Oct 12, 2021

I'm not sure if this is the best place to mention this, but the current work-around for reattach-to-user-namespace, i.e. below

if is_osx && command_exists "reattach-to-user-namespace" && option_value_not_changed "default-command" ""; then
	tmux set-option -g default-command "reattach-to-user-namespace -l $SHELL"
fi

causes some of commands I put in the end of my shell init file (pfetch) to run twice.

It seems that removing this work-around doesn't hurt anything (e.g. tmux-yank still works).

weibeld added a commit to weibeld-setup/install-dotfiles that referenced this issue May 21, 2023
This seems to be not necessary anymore [1]. This also gets rid of the need
to install reattach-to-user-namespace with Homebrew.

[1] tmux-plugins/tmux-sensible#42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants