plumber

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

textgopheropener (257B)


      1 #!/bin/sh
      2 
      3 if [ $# -lt 1 ];
      4 then
      5 	printf "usage: %s URI\n" "$(basename "$0")" >&2
      6 	exit 1
      7 fi
      8 
      9 cd $HOME/Downloads
     10 
     11 uri=$1
     12 if [ "$PLUMB_TXTGOPHER" != "sacc" ]; then
     13 	uri=$(echo "$1" | sed s/^gophers/gopher/)  
     14 fi
     15 
     16 $XTERM -e sh -c "$PLUMB_TXTGOPHER \"$uri\""
     17