Let's say for example we have a commands.sh
script like the following:
#!/bin/bash
func1() {
echo "func1"
}
# based on https://stackoverflow.com/a/16159057/12894926
"$@"
If we type ./commands.sh fu<TAB>
it won't be autocompleted to ./commands.sh func1
.
Is there a way to achieve this?