plumber

Plumber – a modern approach to plumbing
git clone git://r-36.net/plumber
Log | Files | Refs | README | LICENSE

commit d7912bde9e05f704541e615c08cb121b11d59fb3
parent c63af0789f4b8d4eee682f128f346793bf5b4b93
Author: Scarlett McAllister <git@roygbyte.com>
Date:   Thu, 24 Aug 2023 00:41:19 -0300

Fallback to gopher when no gophers client is found

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
Mopeners/textgopheropener | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/openers/textgopheropener b/openers/textgopheropener @@ -7,5 +7,11 @@ then fi cd $HOME/Downloads -$XTERM -e sh -c "$PLUMB_TXTGOPHER \"$1\"" + +uri=$1 +if [ "$PLUMB_TXTGOPHER" != "sacc" ]; then + uri=$(echo "$1" | sed s/^gophers/gopher/) +fi + +$XTERM -e sh -c "$PLUMB_TXTGOPHER \"$uri\""