- #f4# Search for newspostings from authors
- agoogle() { ${=BROWSER} "http://groups.google.com/groups?as_uauthors=$*" ; }
- #f4# Search Debian Bug Tracking System by BugID in mbox format
- debbug() { ${=BROWSER} "http://bugs.debian.org/$*" }
- #f4# Search Debian Bug Tracking System
- debbugm() { bts show --mbox $1 } # provide bugnummer as "$1"
- #f4# Search DMOZ
- dmoz() { ${=BROWSER} http://search.dmoz.org/cgi-bin/search\?search=${1// /_} }
- #f4# Search German Wiktionary
- dwicti() { ${=BROWSER} http://de.wiktionary.org/wiki/${(C)1// /_} }
- #f4# Search English Wiktionary
- ewicti() { ${=BROWSER} http://en.wiktionary.org/wiki/${(C)1// /_} }
- #f4# Search Google Groups
- ggogle() { ${=BROWSER} "http://groups.google.com/groups?q=$*" }
- #f4# Search Google
- google() { ${=BROWSER} "http://www.google.com/search?&num=100&q=$*" }
- #f4# Search Google Groups for MsgID
- mggogle() { ${=BROWSER} "http://groups.google.com/groups?selm=$*" }
- #f4# Search Netcraft
- netcraft(){ ${=BROWSER} "http://toolbar.netcraft.com/site_report?url=$1" }
- #f4# Use German Wikipedia's full text search
- swiki() { ${=BROWSER} http://de.wikipedia.org/wiki/Spezial:Search/${(C)1} }
- #f4# search \kbd{dict.leo.org}
- oleo() { ${=BROWSER} "http://dict.leo.org/?search=$*" }
- #f4# Search German Wikipedia
- wikide () { ${=BROWSER} http://de.wikipedia.org/wiki/"${(C)*}" }
- #f4# Search English Wikipedia
- wikien() { ${=BROWSER} http://en.wikipedia.org/wiki/"${(C)*}" }
- #f4# Search official debs
- wodeb () { ${=BROWSER} "http://packages.debian.org/search?keywords=$1&searchon=contents&suite=${2:=unstable}§ion=all" }
-
- #m# f4 gex() Exact search via Google
- which google &>/dev/null && gex () { google "\"[ $1]\" $*" } # exact search at google
+#f4# Search for newspostings from authors
+agoogle() { ${=BROWSER} "http://groups.google.com/groups?as_uauthors=$*" ; }
+#f4# Search Debian Bug Tracking System by BugID in mbox format
+debbug() {
+ setopt localoptions extendedglob
+ if [[ $# -eq 1 ]]; then
+ case "$1" in
+ ([0-9]##)
+ ${=BROWSER} "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=$1"
+ ;;
+ (*@*)
+ ${=BROWSER} "http://bugs.debian.org/cgi-bin/pkgreport.cgi?submitter=$1"
+ ;;
+ (*)
+ ${=BROWSER} "http://bugs.debian.org/$*"
+ ;;
+ esac
+ else
+ print "$0 needs one argument"
+ return 1
+ fi
+}
+#f4# Search Debian Bug Tracking System
+debbugm() { bts show --mbox $1 } # provide bugnummer as "$1"
+#f4# Search DMOZ
+dmoz() { ${=BROWSER} http://search.dmoz.org/cgi-bin/search\?search=${1// /_} }
+#f4# Search German Wiktionary
+dwicti() { ${=BROWSER} http://de.wiktionary.org/wiki/${(C)1// /_} }
+#f4# Search English Wiktionary
+ewicti() { ${=BROWSER} http://en.wiktionary.org/wiki/${(C)1// /_} }
+#f4# Search Google Groups
+ggogle() { ${=BROWSER} "http://groups.google.com/groups?q=$*" }
+#f4# Search Google
+google() { ${=BROWSER} "http://www.google.com/search?&num=100&q=$*" }
+#f4# Search Google Groups for MsgID
+mggogle() { ${=BROWSER} "http://groups.google.com/groups?selm=$*" }
+#f4# Search Netcraft
+netcraft(){ ${=BROWSER} "http://toolbar.netcraft.com/site_report?url=$1" }
+#f4# Use German Wikipedia's full text search
+swiki() { ${=BROWSER} http://de.wikipedia.org/wiki/Spezial:Search/${(C)1} }
+#f4# search \kbd{dict.leo.org}
+oleo() { ${=BROWSER} "http://dict.leo.org/?search=$*" }
+#f4# Search German Wikipedia
+wikide() { ${=BROWSER} http://de.wikipedia.org/wiki/"${(C)*}" }
+#f4# Search English Wikipedia
+wikien() { ${=BROWSER} http://en.wikipedia.org/wiki/"${(C)*}" }
+#f4# Search official debs
+wodeb() { ${=BROWSER} "http://packages.debian.org/search?keywords=$1&searchon=contents&suite=${2:=unstable}§ion=all" }
+
+#m# f4 gex() Exact search via Google
+check_com google && gex () { google "\"[ $1]\" $*" } # exact search at google