X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=44dab07a23322280e754459594ae8bc8df20ff36;hb=be16974ebcf7c7946ea5718b1c131e61a532b895;hp=a793793a1782d8e09b9dc3551b8c577fb9e0eb4c;hpb=4430c904387787d6d530b67e44e99f50be140113;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index a793793..44dab07 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2773,36 +2773,6 @@ shtar() { emulate -L zsh gunzip -c $1 | tar -tf - -- | $PAGER } -#f5# Show contents of zip file -shzip() { - emulate -L zsh - unzip -l $1 | $PAGER -} -#f5# Unified diff -udiff() { - emulate -L zsh - diff -urd $* | egrep -v "^Only in |^Binary files " -} -#f5# (Mis)use \kbd{vim} as \kbd{less} -viless() { - emulate -L zsh - vim --cmd 'let no_plugin_maps = 1' -c "so \$VIMRUNTIME/macros/less.vim" "${@:--}" -} - -# Function Usage: uopen $URL/$file -#f5# 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 -} # Function Usage: doc packagename #f5# \kbd{cd} to /usr/share/doc/\textit{package}