repo: golang
action: commit
revision: 
path_from: 
revision_from: 5a2be9adfb1e74e0afbbbfa804f91f6ca1c9ee51:
path_to: 
revision_to: 
git.thebackupbox.net
golang
git clone git://git.thebackupbox.net/golang
commit 5a2be9adfb1e74e0afbbbfa804f91f6ca1c9ee51
Author: epoch 
Date:   Wed Mar 11 03:20:45 2020 -0500

    basic readme. forgot a line for uristart.conf

diff --git a/README b/README
new file mode 100644
index 0000000000000000000000000000000000000000..4c8c19aebe67b1cbdccb381df0b631a1af4542d8
--- /dev/null
+++ b/README
@@ -0,0 +1,8 @@
+golang, but not really, this is about port 70 gopher.
+
+These two scripts are meant to be triggered by uristart
+and the output need to go to a terminal that'll make URLs clickable
+and then pass the link back into uristart.
+
+I abuse the file: URI by adding a query string that specifies the mime-type
+that any file handler should use to launch file.
diff --git a/etc/uristart.conf b/etc/uristart.conf
index 398cb6bf4444702a48a6e6e8924e6a227b1ad1cb..
index ..fe2a9b1a90459c431b43b4748d78ac39108d0a5a 100644
--- a/etc/uristart.conf
+++ b/etc/uristart.conf
@@ -1 +1,2 @@
 gopher:		gopher '%d' '%P' '%p'
+file:		if [ -e '%p' ];then eval "$(printf "$(grep "^$(if [ "%q" ];then echo '%q' | tr '&' '\n' | grep ^mime-type= | cut -d= -f2-; else file --mime-type '%p' | cut '-d ' -f2;fi)"$'\t' ~/.config/mimetype.conf | cut -d$'\t' -f2- | sed 's/^'$'\t''*//g')" '%p')";else xmessage file %p does not exist;fi

-----END OF PAGE-----