diff --git a/README.md b/README.md index db3696d..57b3d4a 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ Optional and configurable: `xdg-open` (can be any url opener or browser) and ## Installation +### Manual + Place it somewhere in your path with name `tmux-url-select` and `chmod +x` it. Add this to your `.tmux.conf`: @@ -52,6 +54,13 @@ tmux prefix key (`` ` ``) bind z run tmux-url-select +### TMUX Plugin Manager + +To install tmux-autoreload with TPM (https://github.com/tmux-plugins/tpm), add the +following line to the end of your tmux configuration file: + + set-option -g @plugin 'dequis/tmux-url-select' + ## Usage Once you're inside tmux-url-select, keybindings: diff --git a/url-select.tmux b/url-select.tmux new file mode 100755 index 0000000..8d41644 --- /dev/null +++ b/url-select.tmux @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +tmux bind-key z run-shell "$CURRENT_DIR/tmux-url-select.pl" \ No newline at end of file