aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-24 10:41:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-24 10:41:20 +1300
commitc80178972b514773fcea581ec18d248966c4923c (patch)
treed5f86810ae626cded48160ab6f7b8925119960a1
parentImprove pattern matching a bit (diff)
downloaddotfiles-c80178972b514773fcea581ec18d248966c4923c.tar.gz
dotfiles-c80178972b514773fcea581ec18d248966c4923c.zip
Remove unneeded extglob set
-rw-r--r--bash/bashrc.d/sd.bash5
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[@]#../}")