oh-my-bash/completions/makefile.completion.sh
Jean-Sébastien Hedde e0abffc8af completions/makefile: Respect POSIX compatibility
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-29 02:03:30 +09:00

4 lines
230 B
Bash

# Add completion for Makefile
# see http://stackoverflow.com/a/38415982/1472048
complete -W "\`shopt -u nullglob; shopt -s nocaseglob; grep -oE '^[a-zA-Z0-9_-]+:([^=]|$)' *makefile 2>/dev/null | sed 's/[^a-zA-Z0-9_-]*$//'\`" make