From 60b2bf3628ecdbb24d7a1e92908f46ecbb1fdafa Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 8 Sep 2016 11:53:22 +1200 Subject: Arrange extensions in descending order of freq So the completion is just a little bit faster --- bash/bash_completion.d/_text_filenames.bash | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'bash') 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) -- cgit v1.2.3