We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_java_find_sourcepath
1 parent 1adf2db commit 502fd11Copy full SHA for 502fd11
completions/java
@@ -50,6 +50,8 @@ _java_find_sourcepath()
50
_java_find_classpath
51
sourcepath=$classpath
52
fi
53
+
54
+ _comp_split -F : sourcepath "$sourcepath"
55
}
56
57
# available classes completion
@@ -107,11 +109,12 @@ _comp_cmd_java__packages()
107
109
108
110
# find which sourcepath to use
111
112
+ ((${#sourcepath[@]})) || return 0
113
114
# convert package syntax to path syntax
115
cur=${cur//.//}
116
# parse each sourcepath element for packages
- for i in ${sourcepath//:/ }; do
117
+ for i in "${sourcepath[@]}"; do
118
if [[ -d $i ]]; then
119
COMPREPLY+=($(command ls -F -d "$i/$cur"* 2>/dev/null |
120
command sed -e 's|^'"$i"'/||'))
0 commit comments