plumber

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

commit 5c231ed10de55b6ccabafc1b808850490c00f0ef
parent 3b37972a2808736aa08262456b2a9ac91a624aa5
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 24 Feb 2024 18:45:35 +0100

Add wais:// support.

Diffstat:
Mbin/plumber | 1+
Aopeners/waisopener | 11+++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/bin/plumber b/bin/plumber @@ -73,6 +73,7 @@ plumbrules = [ ["^portage:.*", "portageopener '%s'"], # Just a try to imitate Ubuntu. ["^apt:.*", "portageopener '%s'"], + ["^wais:.*", "waisopener '%s'"], ["^wikipedia:.*", "wikipediaopener '%s'"], ["^wikipedia-[a-zA-Z]*:.*", "wikipediaopener '%s'"], ["^wiki:.*", "wikiopener '%s'"], diff --git a/openers/waisopener b/openers/waisopener @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ $# -lt 1 ]; +then + printf "usage: %s URI\n" "$(basename "$0")" >&2 + exit 1 +fi + +cd $HOME/Downloads +$XTERM -e sh -c "$PLUMB_WAIS \"$1\"" +