summaryrefslogtreecommitdiff
path: root/start.conf.example
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2018-04-12 10:58:25 +0000
committerepochqwert <epoch@hacking.allowed.org>2018-04-12 10:58:25 +0000
commitfa16bb64c861e88cf9ad3ff76546cb13206a5826 (patch)
tree6c2333f5ee3436e2bcc79582213a6293f03b7369 /start.conf.example
parent47eb00790cfe9badb8f08d4f3e7e3241f1f1649f (diff)
downloaduritools-fa16bb64c861e88cf9ad3ff76546cb13206a5826.tar.gz
uritools-fa16bb64c861e88cf9ad3ff76546cb13206a5826.zip
added some more examples to start.conf.example
Diffstat (limited to 'start.conf.example')
-rw-r--r--start.conf.example11
1 files changed, 8 insertions, 3 deletions
diff --git a/start.conf.example b/start.conf.example
index c35d8f0..6864da3 100644
--- a/start.conf.example
+++ b/start.conf.example
@@ -1,3 +1,8 @@
-finger:printf "%p\n" | ncat "%d" 79 | tr -d '\r' | xmessage -file -
-http:dillo %U
-DEFAULT:xdg-open %U
+### start single-quote escapes the url parts so place them inside single-quote or else!
+### (if you're given a bad link someone might be able to run shell commands)
+finger:printf "%%s\r\n" '%p' | ncat '%d' 79 | tr -d '\r' | xmessage -file -
+### new! subshells works
+whois:whois "$(printf '%%s\\\\n' '%d' | sed 's/^..*$/-h/')" '%d' '%p' | xmessage -file -
+irc:x-terminal-emulator -e irssi -c '%d' -p '%P'
+http:dillo '%U'
+DEFAULT:xdg-open '%U'