oh-my-bash/completions/makefile.completion.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
274 B
Bash
Raw Permalink Normal View History

#! bash oh-my-bash.module
# Add completion for Makefile
# see http://stackoverflow.com/a/38415982/1472048
2021-12-28 17:00:31 +00:00
complete -W "\$(shopt -u nullglob; shopt -s nocaseglob; command grep -oE '^[a-zA-Z0-9_-]+:([^=]|\$)' *makefile 2>/dev/null | command sed 's/[^a-zA-Z0-9_-]*\$//')" make