aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ud.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/ud.bash')
-rw-r--r--bash/bashrc.d/ud.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/bash/bashrc.d/ud.bash b/bash/bashrc.d/ud.bash
index 5bcfc2ed..b5279004 100644
--- a/bash/bashrc.d/ud.bash
+++ b/bash/bashrc.d/ud.bash
@@ -54,6 +54,8 @@ _ud() {
if ((COMP_CWORD == 2)) ; then
local word
word=${COMP_WORDS[COMP_CWORD]}
+ compopt -o filenames
+ local IFS=$'\n'
COMPREPLY=( $(compgen -A directory -- "$word" ) )
else
return 1