-
-
Save henrik/3181718 to your computer and use it in GitHub Desktop.
# Start by checking if they fixed it upstream: | |
brew update | |
brew upgrade reattach-to-user-namespace | |
# If it says it's already installed, they haven't fixed it upstream. So do this: | |
# Edit the recipe: | |
brew edit reattach-to-user-namespace | |
# In your editor, change: | |
# dadea0aa48259c704d0b412b9588de2f5623e323 (on line 6) to ece1935953593d05e98d8c3ee8f956b2429d633f | |
# dadea0 (on line 7) to ece193 | |
# Install the edited version: | |
brew upgrade reattach-to-user-namespace | |
# Done! |
Thanks very much.
Fixed upstream now :)
👍
👍 thanks
Same warning was showing up in Mavericks. Same fix. Many thanks.
Hmm is just me or something else, it I don't think the line 7 matches your tip. I did the following but still had no luck
require 'formula'
class ReattachToUserNamespace < Formula
homepage 'https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard'
url 'https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/archive/v2.2.tar.gz'
sha1 'ece1935953593d05e98d8c3ee8f956b2429d633f'
head 'https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard.git'
option 'wrap-pbcopy-and-pbpaste', 'Include wrappers for pbcopy/pbpaste that shim in this fix'
option 'wrap-launchctl', 'Include wrapper for launchctl with this fix'
def install
system "make"
bin.install "reattach-to-user-namespace"
wrap_pbpasteboard_commands if build.include? 'wrap-pbcopy-and-pbpaste'
wrap_launchctl if build.include? 'wrap-launchctl'
end
def wrap_pbpasteboard_commands
make_executable_with_content('pbcopy', 'cat - | reattach-to-user-namespace /usr/bin/pbcopy')
make_executable_with_content('pbpaste', 'reattach-to-user-namespace /usr/bin/pbpaste')
end
def wrap_launchctl
make_executable_with_content('launchctl', 'reattach-to-user-namespace /bin/launchctl "$@"')
end
def make_executable_with_content(executable_name, content_lines)
executable = bin.join(executable_name)
content = [*content_lines].unshift("#!/bin/sh").join("\n")
executable.write(content)
executable.chmod(0755)
end
end
Thank you very much, It works like a charm
Fixes the problem on Yosemite too. Thanks 🍻
Nice :)
God bless the internet.
ty, works on high sierra 10.13.5
Thank you!
Glad it's still helpful ❤️ :)
How to fix for Mojave?
Here for Mojave too
Every new macOS release I endup here 😆
Mojave -> brew upgrade reattach-to-user-namespace
works straight away.
Thanks
Fix for macOS Mojave
brew upgrade reattach-to-user-namespace
brew upgrade reattach-to-user-namespace
works for macOS Catalina as well
Still helpful in 2020. Worked for me.
Thanks for posting.
This worked for me after the Big-Sur update. Thanks for sharing.
Cheers! (works when updating to Big Sur)
Worky, works after upgrade to Bigsur!
Thanks for posting this!