Not entirely sure if this is an issue with tmux or this requires special config, but when I run say -v "Alex" "Hello, World!" from Terminal or iTerm outside of Tmux, it works just fine. But when I try and run it from within a Tmux session, it simply hangs and does nothing.
Anyone else ever encounter this? Looks around and couldn't find any previous issues, etc.
Thanks.
Works for me. Make sure you the reattach-to-user-namespace program installed and add lines like the following to your ~/.tmux.conf (obviously changing the shell to whatever you prefer):
# The reattach-to-user-namespace is necessary to be able to contact ssh-agent
# via the SSH_AUTH_SOCK env var. This is also necessary to make pasteboard
# (clipboard) interaction work for programs run within the tmux server.
set-option -g default-command "exec reattach-to-user-namespace -l /usr/local/bin/fish"
This is an Apple problem not a tmux problem. I am closing this but continue to reply here if you wish.
+1 for @krader1961's solution
reattach-to-user-namespace can be found here: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Works for me. Make sure you the
reattach-to-user-namespaceprogram installed and add lines like the following to your ~/.tmux.conf (obviously changing the shell to whatever you prefer):