wolf: register tab-completion for both 'manage.sh' and './manage.sh'
Bash treats these as different command names so both need registering. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D8ckUJQtj1pH8jtAddBDZs
This commit is contained in:
+2
-1
@@ -1704,8 +1704,9 @@ _manage_wolf_complete() {
|
||||
install-completion backup"
|
||||
COMPREPLY=( $(compgen -W "$commands" -- "$cur") )
|
||||
}
|
||||
# Register for any script named manage.sh regardless of path
|
||||
# Register for both 'manage.sh' and './manage.sh' invocation styles
|
||||
complete -F _manage_wolf_complete manage.sh
|
||||
complete -F _manage_wolf_complete ./manage.sh
|
||||
COMPEOF
|
||||
# Also source it immediately in the current shell if possible
|
||||
echo "source \"$COMP_FILE\"" >> "$HOME/.bash_completion" 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user