plumber

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

gopheropener (278B)


      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 mkdir -p $HOME/Downloads
     10 cd $HOME/Downloads
     11 
     12 uri=$1
     13 if [ "$PLUMB_GOPHER" != "sacc" ]; then
     14 	uri=$(echo "$1" | sed s/^gophers/gopher/)  
     15 fi
     16 
     17 $XTERM -e sh -c "$PLUMB_GOPHER \"$uri\"" &
     18