X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=17bae725013c7178d5cd54d5b9b723a85d3c9b6d;hb=73a6cb726324d0be16df7a2b070d9a4bb3127ef1;hp=df9f4d9f32c58ffbc1f5d3bba59747c0f930f113;hpb=c1d89209822ed136e486b6c3c253f247e4d65ab2;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index df9f4d9..17bae72 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -228,6 +228,23 @@ fi # fi #} +## Download a file and display it locally +#uopen() { +# emulate -L zsh +# 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 +#} + ## log out? set timeout in seconds... ## ...and do not log out in some specific terminals: #if [[ "${TERM}" == ([Exa]term*|rxvt|dtterm|screen*) ]] ; then