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:
parent
17b6ed0231
commit
f58b2f7a30
1 changed files with 0 additions and 19 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue