aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/sd.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/sd.bash')
-rw-r--r--bash/bashrc.d/sd.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/bash/bashrc.d/sd.bash b/bash/bashrc.d/sd.bash
index 77a48443..d4ba49b3 100644
--- a/bash/bashrc.d/sd.bash
+++ b/bash/bashrc.d/sd.bash
@@ -113,6 +113,8 @@ _sd() {
local word curdir
word=${COMP_WORDS[COMP_CWORD]}
curdir=${PWD##*/}
+ compopt -o filenames
+ local IFS=$'\n'
COMPREPLY=( $(cd .. && compgen -d -X "$curdir" -- "$word") )
}
complete -F _sd sd