Complete bzcat and zcat only on compressed files.
This commit is contained in:
parent
8c43004135
commit
e074f7ff83
1
CHANGES
1
CHANGES
@ -100,6 +100,7 @@ bash-completion (1.x)
|
||||
the "module" alias has not been defined (yet).
|
||||
* Add *.ogv to xine-based players (Debian: #540033).
|
||||
* Add $compopt (":" i.e. no-op with bash < 4, "compopt" with >= 4).
|
||||
* Complete bzcat and zcat only on compressed files.
|
||||
|
||||
[ Todd Zullinger ]
|
||||
* Make yum complete on filenames after install, deplist, update and upgrade
|
||||
|
@ -98,16 +98,16 @@ complete -d pushd
|
||||
# Do NOT break these over multiple lines.
|
||||
#
|
||||
# START exclude -- do NOT remove this line
|
||||
complete -f -X '!*.?(t)bz?(2)' bunzip2
|
||||
complete -f -X '!*.?(t)bz?(2)' bunzip2 bzcat
|
||||
# TODO: see #455510
|
||||
#complete -f -X '!*.?(t)bz?(2)' bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep
|
||||
complete -f -X '!*.*' bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep
|
||||
#complete -f -X '!*.?(t)bz?(2)' bzcmp bzdiff bzegrep bzfgrep bzgrep
|
||||
complete -f -X '!*.*' bzcmp bzdiff bzegrep bzfgrep bzgrep
|
||||
complete -f -X '!*.@(zip|ZIP|jar|JAR|exe|EXE|pk3|war|wsz|ear|zargo|xpi|sxw|ott|od[fgpst]|epub)' unzip zipinfo
|
||||
complete -f -X '*.Z' compress znew
|
||||
complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip
|
||||
complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip zcat
|
||||
# TODO: see #455510
|
||||
#complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' zcmp zdiff zcat zegrep zfgrep zgrep zless zmore
|
||||
complete -f -X '!*.*' zcmp zdiff zcat zegrep zfgrep zgrep zless zmore
|
||||
#complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' zcmp zdiff zegrep zfgrep zgrep zless zmore
|
||||
complete -f -X '!*.*' zcmp zdiff zegrep zfgrep zgrep zless zmore
|
||||
complete -f -X '!*.Z' uncompress
|
||||
# lzcmp, lzdiff intentionally not here, see Debian: #455510
|
||||
complete -f -X '!*.lzma' lzcat lzegrep lzfgrep lzgrep lzless lzmore unlzma
|
||||
|
Loading…
x
Reference in New Issue
Block a user