aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:26:50 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:26:50 +1300
commitbd12134df6b92ad7efe192cc7191e648eb5706ab (patch)
tree4d68c0569e6b0d479034695b06a1dc0edac35dc0
parent1f04fdd4b9a4c0df2a69e7b75c46eb73503b30f8 (diff)
downloaddotfiles-bd12134df6b92ad7efe192cc7191e648eb5706ab.tar.gz
dotfiles-bd12134df6b92ad7efe192cc7191e648eb5706ab.zip
Use inverting exclam mark outside conditional
-rw-r--r--bash/bash_completion.d/_text_filenames.bash8
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