diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-20 17:13:08 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-20 17:13:18 +1300 |
commit | e22f63ecfb1a10262ccedbd462d1758a9781926a (patch) | |
tree | a5924642575ce5c0c5432377a21bc5ac6a57b951 /bash/bash_completion.d | |
parent | Add full stop (diff) | |
download | dotfiles-e22f63ecfb1a10262ccedbd462d1758a9781926a.tar.gz dotfiles-e22f63ecfb1a10262ccedbd462d1758a9781926a.zip |
Return not continue in text filename completion
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r-- | bash/bash_completion.d/_text_filenames.bash | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bash/bash_completion.d/_text_filenames.bash b/bash/bash_completion.d/_text_filenames.bash index 683171c7..853bc641 100644 --- a/bash/bash_completion.d/_text_filenames.bash +++ b/bash/bash_completion.d/_text_filenames.bash @@ -12,13 +12,13 @@ _text_filenames() { while IFS= read -r item ; do # Exclude blanks - [[ -n $item ]] || return + [[ -n $item ]] || continue # Exclude files with block, character, pipe, or socket type - [[ ! -b $item ]] || return - [[ ! -c $item ]] || return - [[ ! -p $item ]] || return - [[ ! -S $item ]] || return + [[ ! -b $item ]] || continue + [[ ! -c $item ]] || continue + [[ ! -p $item ]] || continue + [[ ! -S $item ]] || continue # Check the filename extension to know what to exclude case $item in |