X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=5dbb26760f3af867b74cbd25f805e117379cea61;hb=11a10666977ec26bc4b83b427f49404220ecd465;hp=93e8fcd8d60d256bea8288031543f054c5c4a302;hpb=42234f351bf117030b3eddbe34da5a094b194ced;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 93e8fcd..5dbb267 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest Change: Sat Jan 26 11:55:04 CET 2008 +# Latest change: Wed Aug 06 14:17:12 CEST 2008 [mika] ################################################################################ # source ~/.zshrc.global {{{ @@ -259,7 +259,7 @@ fi #f4# Search for newspostings from authors agoogle() { ${=BROWSER} "http://groups.google.com/groups?as_uauthors=$*" ; } #f4# Search Debian Bug Tracking System -debbug() { +debbug() { setopt localoptions extendedglob if [[ $# -eq 1 ]]; then case "$1" in @@ -360,6 +360,19 @@ ytdl() { fi } +# Function Usage: uopen $URL/$file +#f5# Download a file and display it locally +uopen() { + if ! [[ -n "$1" ]] ; then + print "Usage: uopen \$URL/\$file">&2 + return 1 + else + FILE=$1 + MIME=$(curl --head $FILE | grep Content-Type | cut -d ' ' -f 2 | cut -d\; -f 1) + MIME=${MIME%$'\r'} + curl $FILE | see ${MIME}:- + fi +} # Function Usage: doc packagename #f5# \kbd{cd} to /usr/share/doc/\textit{package} @@ -1310,9 +1323,6 @@ gethgsnap() { # modifications in ~/.zshrc.local xsource "${HOME}/.zshrc.local" -# ...and remove utility functions again. -xunfunction - # }}} ### doc strings for external functions from files