From: Oleg Broytman Date: Fri, 26 Aug 2016 21:49:53 +0000 (+0300) Subject: .shellrc: add completion for m(ake) X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=e01448c1c7eb65184ae5b2b5c04f907d816e269a;p=dotfiles.git .shellrc: add completion for m(ake) --- diff --git a/.shellrc b/.shellrc index e43c215..253d434 100644 --- a/.shellrc +++ b/.shellrc @@ -147,6 +147,16 @@ if test -n "$BASH_VERSION"; then complete -F _ssh_completion_loader s fi + if has_completion make; then + _make_completion_loader() { + _completion_loader make + complete -F _make m + unset _make_completion_loader + return 124 + } + complete -F _make_completion_loader m + fi + unset has_completion complete -A job bg fg j jobs wait