0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 13:03:31 +00:00
termux-packages/packages/picolisp/fix-bash-completion.patch
2023-02-26 13:08:39 +08:00

12 lines
473 B
Diff

--- a/lib/bash_completion
+++ b/lib/bash_completion
@@ -10,7 +10,7 @@
do
test "${A:0:1}" = "-" || ARGS[${#ARGS[@]}]="${A//\\ / }"
done
- COMPREPLY=($(${COMP_WORDS[0]} ${ARGS[@]} /usr/lib/picolisp/lib/complete.l "${COMP_WORDS[$COMP_CWORD]}" -bye + 2>&1))
+ COMPREPLY=($(${COMP_WORDS[0]} ${ARGS[@]} @TERMUX_PREFIX@/lib/picolisp/lib/complete.l "${COMP_WORDS[$COMP_CWORD]}" -bye + 2>&1))
return 0
} &&
complete -o nospace -F _pil picolisp &&