1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

partially working _normal completion for zsh

This commit is contained in:
Kelly Brazil
2022-06-14 07:42:55 -07:00
parent 747b255e34
commit ca95615d7f

View File

@ -190,7 +190,9 @@ _jc() {
# if magic command is found anywhere in the line, use called command's autocompletion
for i in $${words:0:-1}; do
if (( $$jc_commands[(Ie)$${i}] )); then
_normal -P
# still not working 100%. works fine as `jc dig`, but `jc -p dig`
# will only complete with files, not program-specific completions
_arguments '*::arguments:_normal'
return 0
fi
done