dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit a0a5074f821b4244403fc2b0a4b19a59a01986ae
parent 723bae2231ff6bb174dd571e123ce3cd7e80d9b2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  1 Mar 2021 10:50:08 +0100

plumb: handle 'ssh://' scheme

Diffstat:
M.local/bin/plumb | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -158,7 +158,7 @@ handle_file_type() { esac } -handle_url() { +handle_uri() { t="$1" if [ "$verbose" = 1 ]; then printf 'target is not a file\n' @@ -219,6 +219,8 @@ handle_url() { fi if regeximatch "$t" '^radio://'; then $prefix mpv --force-window=no "http${t##radio}" + elif regeximatch "$t" '^ssh://'; then + termopen $prefix ssh "$t" elif regeximatch "$t" '\.(mp4|mkv|webm|avi|ogv|m3u|pls)$'; then if regeximatch "$t" '^gophers://'; then $prefix $fetcher "$t" | mpv - @@ -290,7 +292,7 @@ handle_target() { elif [ -e "$t" ]; then handle_file_type "$t" else - handle_url "$t" + handle_uri "$t" fi s="$?" if [ "$s" -ne 0 ]; then