5 ms·
Autocompletion of make targets in the shell.
by mercurial 13y ago
Autocompletion of make targets in the shell.
- chubot 13y agoI wrote my own completion for that :) Here is the pattern I use: run.sh build() { ... } test() { ... } deploy() { ... } # This lets you do ./run.sh build foo bar at the command # line. The autocomplete scans for functions in .sh files # and fills them in as the first arg. "$@"