From: Joerg Woelke Date: Fri, 21 Aug 2009 13:34:51 +0000 (+0200) Subject: zshrc: Remove superfluous function shtgz. X-Git-Tag: v0.3.75~17 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=2071719f1feda7b2e4d13e127503c246b0d23ac3;p=grml-etc-core.git zshrc: Remove superfluous function shtgz. shtar() does the same and is more portable. Also fixed description for zsh refcard. Acked-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 55d92ff..36f54ea 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3341,16 +3341,11 @@ mdiff() { memusage() { ps aux | awk '{if (NR > 1) print $5; if (NR > 2) print "+"} END { print "p" }' | dc } -#f5# Show contents of tar file +#f5# Show contents of gzipped tar file shtar() { emulate -L zsh gunzip -c $1 | tar -tf - -- | $PAGER } -#f5# Show contents of tgz file -shtgz() { - emulate -L zsh - tar -ztf $1 | $PAGER -} #f5# Show contents of zip file shzip() { emulate -L zsh