Commit ea78ed6d authored by Frank Terbeck's avatar Frank Terbeck

lookup: Simplify gui-browser setup

parent b1495b4b
......@@ -1943,20 +1943,8 @@ if (( ${+functions[lookup]} )); then
zstyle ':lookup:*:rfc:*' search-path ~/share/rfc /usr/share/doc/RFC/links
zstyle ':lookup:*:rfc:*' save-path ~/share/rfc
zstyle -e ':lookup:*' gui-browser '
typeset -ga reply
if pgrep -f -u ${EUID} google-chrome >/dev/null; then
reply=(google-chrome)
else
reply=(iceweasel)
fi'
zstyle -e ':lookup:*' gui-formats '
typeset -ga reply
if pgrep -f -u ${EUID} google-chrome >/dev/null; then
reply=(%s)
else
reply=(-remote "openurl(%s)")
fi'
zstyle ':lookup:*' gui-browser iceweasel
zstyle ':lookup:*' gui-formats -new-tab '%s'
# Here's a nice one: I got this script cmus-rstat.sh, which tells me which
# track cmus (my audio player) is currently playing in this format:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment