diff options
Diffstat (limited to 'bash/bashrc.d/sd.bash')
-rw-r--r-- | bash/bashrc.d/sd.bash | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bash/bashrc.d/sd.bash b/bash/bashrc.d/sd.bash index eeb61fc1..33e0a033 100644 --- a/bash/bashrc.d/sd.bash +++ b/bash/bashrc.d/sd.bash @@ -123,10 +123,9 @@ _sd() { done < <( # Set options to glob correctly - shopt -s dotglob extglob nullglob + shopt -s dotglob nullglob - # Collect directory names, exclude current directory, strip leading ../ - # and trailing / + # Collect directory names, strip leading ../ and trailing / local -a dirnames dirnames=(../"${COMP_WORDS[COMP_CWORD]}"*/) dirnames=("${dirnames[@]#../}") |