]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: add completion for m(ake)
authorOleg Broytman <phd@phdru.name>
Fri, 26 Aug 2016 21:49:53 +0000 (00:49 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 26 Aug 2016 21:49:53 +0000 (00:49 +0300)
.shellrc

index e43c215913f3778b697c0804991596ffb8d6a761..253d4347d579d3e0804d3a210500983fda3cdaf0 100644 (file)
--- 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