diff options
Diffstat (limited to 'start.conf.example')
-rw-r--r-- | start.conf.example | 11 |
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' |