From c80178972b514773fcea581ec18d248966c4923c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 24 Dec 2015 10:41:20 +1300 Subject: Remove unneeded extglob set --- bash/bashrc.d/sd.bash | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bash') 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[@]#../}") -- cgit v1.2.3