diff --git a/bash_completion.d/ldc b/bash_completion.d/ldc
index 9868c6cc..37b37f45 100644
--- a/bash_completion.d/ldc
+++ b/bash_completion.d/ldc
@@ -125,7 +125,7 @@ have ldc2 &&{
'-Dd='*|'-Hd='*|'-I='*|'-J='*|'-od='*) # add an =
prev="${cur%%=*}="
cur=${cur#*=}
- COMPREPLY=( ${prev}$(compgen -d "${cur}") )
+ COMPREPLY=( ${prev}$(compgen -S '/' -d "${cur}") )
return 0
;;
-'Df='*|'-Hf='*|'-deps='*|'-internalize-public-api-file='*|'-of='*|'-Xf='*) # add an =