aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-19 16:56:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-19 16:56:23 +1300
commit7af737cf55bc2cfd0fc518998680182605aa41e3 (patch)
treeb1f4a4b223024584f4169e6fdcf4d7e97bc83063 /bash
parentAdd yashrc.d and ver() func (diff)
downloaddotfiles-7af737cf55bc2cfd0fc518998680182605aa41e3.tar.gz
dotfiles-7af737cf55bc2cfd0fc518998680182605aa41e3.zip
Allow .gz completion for text fns, but not .tar.gz
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/_text_filenames.bash5
1 files changed, 2 insertions, 3 deletions
diff --git a/bash/bash_completion.d/_text_filenames.bash b/bash/bash_completion.d/_text_filenames.bash
index 09d831a5..683171c7 100644
--- a/bash/bash_completion.d/_text_filenames.bash
+++ b/bash/bash_completion.d/_text_filenames.bash
@@ -40,9 +40,8 @@ _text_filenames() {
*.AUP|*.FLAC|*.MID|*.H2SONG|*.NWC|*.S3M|*.WAV) ;;
# Compressed/archived file formats
- # (Yes I know Vim can read these)
- *.bz2|*.cab|*.deb|*.gz|*.lzm|*.pack|*.tar|*.xz|*.zip) ;;
- *.BZ2|*.CAB|*.DEB|*.GZ|*.LZM|*.PACK|*.TAR|*.XZ|*.ZIP) ;;
+ *.cab|*.deb|*.lzm|*.pack|*.tar|*.tar.bz2|*.tar.gz|*.tar.xz|*.zip) ;;
+ *.CAB|*.DEB|*.LZM|*.PACK|*.TAR|*.TAR.BZ2|*.TAR.GZ|*.TAR.XZ|*.ZIP) ;;
# Document formats
*.cbr|*.doc|*.docx|*.epub|*.odp|*.odt|*.pdf|*.xls|*.xlsx) ;;