Update whatsdirty
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 12s
Build-Test-Publish / build (linux/arm64) (push) Successful in 14s

This commit is contained in:
2025-09-29 23:19:10 +13:00
parent 027b46d956
commit 4904d0fc6b

View File

@@ -261,8 +261,13 @@ main() {
# === Autocomplete Function ===
handle_autocomplete() {
# Ensure COMP_WORDS and COMP_CWORD are set
if [ -z "${COMP_WORDS+x}" ] || [ -z "${COMP_CWORD+x}" ]; then
return 0
fi
local cur_word="${COMP_WORDS[COMP_CWORD]}"
# If we're completing the first argument after 'whatsdirty'
if [ ${COMP_CWORD} -eq 1 ]; then
# Suggest common directories and saved directory