aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-08 11:53:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-08 11:53:22 +1200
commit60b2bf3628ecdbb24d7a1e92908f46ecbb1fdafa (patch)
tree19b9de0e51b76d6f823ae20bb3e69bc5b14c3137 /bash/bash_completion.d
parentAdd .gpg files to text file skips (diff)
downloaddotfiles-60b2bf3628ecdbb24d7a1e92908f46ecbb1fdafa.tar.gz
dotfiles-60b2bf3628ecdbb24d7a1e92908f46ecbb1fdafa.zip
Arrange extensions in descending order of freq
So the completion is just a little bit faster
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r--bash/bash_completion.d/_text_filenames.bash26
1 files changed, 13 insertions, 13 deletions
diff --git a/bash/bash_completion.d/_text_filenames.bash b/bash/bash_completion.d/_text_filenames.bash
index 34aa1145..dd6ab541 100644
--- a/bash/bash_completion.d/_text_filenames.bash
+++ b/bash/bash_completion.d/_text_filenames.bash
@@ -26,10 +26,6 @@ _text_filenames() {
*.bmp|*.gif|*.ico|*.jpeg|*.jpg|*.png|*.tif|*.xcf) ;;
*.BMP|*.GIF|*.ICO|*.JPEG|*.JPG|*.PNG|*.TIF|*.XCF) ;;
- # Font files
- *.ttf) ;;
- *.TTF) ;;
-
# Video file formats
*.avi|*.gifv|*.mkv|*.mov|*.mpg|*.rm|*.webm) ;;
*.AVI|*.gifv|*.MKV|*.MOV|*.MPG|*.RM|*.WEBM) ;;
@@ -42,27 +38,31 @@ _text_filenames() {
*.aup|*.flac|*.mid|*.h2song|*.nwc|*.s3m|*.wav) ;;
*.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) ;;
+
# Document formats
*.cbr|*.doc|*.docx|*.epub|*.odp|*.odt|*.pdf|*.xls|*.xlsx) ;;
*.CBR|*.DOC|*.DOCX|*.EPUB|*.ODP|*.ODT|*.PDF|*.XLS|*.XLSX) ;;
+ # Filesystems/disk images
+ *.bin|*.cue|*.hdf|*.img|*.iso|*.mdf|*.raw) ;;
+ *.BIN|*.CUE|*.HDF|*.IMG|*.ISO|*.MDF|*.RAW) ;;
+
+ # Font files
+ *.ttf) ;;
+ *.TTF) ;;
+
# Index file formats
*.idx) ;;
*.IDX) ;;
- # 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) ;;
-
# Encrypted file formats
*.gpg) ;;
*.GPG) ;;
- # Filesystems/disk images
- *.bin|*.cue|*.hdf|*.img|*.iso|*.mdf|*.raw) ;;
- *.BIN|*.CUE|*.HDF|*.IMG|*.ISO|*.MDF|*.RAW) ;;
-
# Other known binary extensions
# (I haven't included .com; on UNIX, that's more likely to be
# something I saved from a website and named after the domain)