diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-24 10:41:20 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-24 10:41:20 +1300 |
commit | c80178972b514773fcea581ec18d248966c4923c (patch) | |
tree | d5f86810ae626cded48160ab6f7b8925119960a1 | |
parent | Improve pattern matching a bit (diff) | |
download | dotfiles-c80178972b514773fcea581ec18d248966c4923c.tar.gz dotfiles-c80178972b514773fcea581ec18d248966c4923c.zip |
Remove unneeded extglob set
-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[@]#../}") |