1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

moved to Completion/Unix/Command/_zcat

This commit is contained in:
Sven Wischnowsky 2001-04-02 12:07:01 +00:00
parent 17b6ed0231
commit f58b2f7a30

View file

@ -1,19 +0,0 @@
#compdef zcat
(( $+_is_gnu )) || typeset -gA _is_gnu
if (( ! $+_is_gnu[$words[1]] )); then
if [[ $(_call version $words[1] --license </dev/null 2>&1) = *GNU* ]]
then
_is_gnu[$words[1]]=yes
else
_is_gnu[$words[1]]=
fi
fi
if [[ -n "$_is_gnu[$words[1]]" ]]
then
_gzip "$@"
else
_compress "$@"
fi