"Open" command doesn't work as expected inside tmux
I am trying to use a command open
to open a link in Chrome from my terminal.
It works fine in normal Terminal.app or iTerm2, but doesn't work as expected from tmux. What's going on: It opens a new instance of Chrome (rather than opening a new tab) and doesn't actually navigate to the url.
Is there any fix for this? The reason I need this feature is to run Mutt from urlview to open links from emails.
Thank.
+3
source to share
1 answer
This sounds like a problem that can be solved by installing reattach-to-user-namespace .
If you don't want to tackle this problem manually in depth, you can use one of the tmux plugins:
- tmux-urlview looks exactly what you are looking for
- Another solution is to use tmux-copycat + tmux-open
+5
source to share