diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:13:23 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:13:23 +1300 |
commit | e521cec24eb88b70cb15b5244e86a5d76032de99 (patch) | |
tree | 840b3618e5b6edefb7a6c75199238bf5840084af /bash/bash_completion.d/sd.bash | |
parent | Overhaul `keep` completion (diff) | |
download | dotfiles-e521cec24eb88b70cb15b5244e86a5d76032de99.tar.gz dotfiles-e521cec24eb88b70cb15b5244e86a5d76032de99.zip |
Use simpler method of no case completion check
Diffstat (limited to 'bash/bash_completion.d/sd.bash')
-rw-r--r-- | bash/bash_completion.d/sd.bash | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/bash/bash_completion.d/sd.bash b/bash/bash_completion.d/sd.bash index 578a69fd..9694de1f 100644 --- a/bash/bash_completion.d/sd.bash +++ b/bash/bash_completion.d/sd.bash @@ -17,17 +17,12 @@ _sd() { # Set options to glob correctly shopt -s dotglob nullglob - # Make globbing case-insensitive if appropriate; is there a cleaner way - # to find this value? - while read -r _ option value ; do - case $option in - (completion-ignore-case) - case $value in - (on) - shopt -s nocaseglob - break - ;; - esac + # Make globbing case-insensitive if appropriate + while read -r _ setting ; do + case $setting in + ('completion-ignore-case on') + shopt -s nocaseglob + break ;; esac done < <(bind -v) |