From 06b247403e39af279e75d78a54d3b1f5c9adbdc8 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Tue, 5 Apr 2022 08:26:49 +0200 Subject: [PATCH] complete makefile --- dot_bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dot_bashrc b/dot_bashrc index 85d78b7..7465601 100644 --- a/dot_bashrc +++ b/dot_bashrc @@ -128,6 +128,11 @@ if command -v most > /dev/null 2>&1; then export PAGER="most" fi +# --------------------------------------------------------------------------- +# COMPLETIONS +# --------------------------------------------------------------------------- +complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' ?akefile | sed 's/[^a-zA-Z0-9_.-]*$//'\`" make + # ------------------------------------------------------------- # Source .bashrc.d files # -------------------------------------------------------------