A tmux key binding to open contents of paste buffer as a URL
I've found myself (often in IRC) copying a URL from the scrollback buffer into the paste buffer, putting it on the system clipboard, and pasting the URL into Chrome.
bind \ run "open \"`tmux show-buffer`\""
This binding sends the contents of the paste buffer to the open
command, which will open your default web browser for http
and https
URLs. If you have an application set up to handle other URL schemes, those will work too.
Written by Tom Jakubowski
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mac
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#