diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:26:50 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:26:50 +1300 |
commit | bd12134df6b92ad7efe192cc7191e648eb5706ab (patch) | |
tree | 4d68c0569e6b0d479034695b06a1dc0edac35dc0 /bash/bash_completion.d | |
parent | Remove stray comment no longer applicable (diff) | |
download | dotfiles-bd12134df6b92ad7efe192cc7191e648eb5706ab.tar.gz dotfiles-bd12134df6b92ad7efe192cc7191e648eb5706ab.zip |
Use inverting exclam mark outside conditional
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r-- | bash/bash_completion.d/_text_filenames.bash | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bash/bash_completion.d/_text_filenames.bash b/bash/bash_completion.d/_text_filenames.bash index 52bb80a1..9cc1c722 100644 --- a/bash/bash_completion.d/_text_filenames.bash +++ b/bash/bash_completion.d/_text_filenames.bash @@ -18,10 +18,10 @@ _text_filenames() { [[ -e $item ]] || continue # Exclude files with block, character, pipe, or socket type - [[ ! -b $item ]] || continue - [[ ! -c $item ]] || continue - [[ ! -p $item ]] || continue - [[ ! -S $item ]] || continue + ! [[ -b $item ]] || continue + ! [[ -c $item ]] || continue + ! [[ -p $item ]] || continue + ! [[ -S $item ]] || continue # Accept directories if [[ -d $item ]] ; then |