Basic BASH completion

This commit is contained in:
Kovid Goyal
2022-09-19 15:12:28 +05:30
parent 928a4db817
commit 266e51310c
3 changed files with 44 additions and 13 deletions

View File

@@ -215,7 +215,7 @@ _ksi_main() {
builtin local limit
# Send all words up to the word the cursor is currently on
builtin let limit=1+$COMP_CWORD
src=$(builtin printf "%s\n" "${COMP_WORDS[@]:0:$limit}" | builtin command kitty +complete bash)
src=$(builtin printf "%s\n" "${COMP_WORDS[@]:0:$limit}" | builtin command kitty-tool __complete__ bash)
if [[ $? == 0 ]]; then
builtin eval "${src}"
fi