From fa16bb64c861e88cf9ad3ff76546cb13206a5826 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Thu, 12 Apr 2018 10:58:25 +0000 Subject: added some more examples to start.conf.example --- start.conf.example | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'start.conf.example') 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' -- cgit v1.2.3