Update whatsdirty
This commit is contained in:
@@ -261,6 +261,11 @@ 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'
|
||||
|
Reference in New Issue
Block a user