diff --git a/completions/git.ksh b/completions/git.ksh index 40322b2..fc93d53 100755 --- a/completions/git.ksh +++ b/completions/git.ksh @@ -1,4 +1,4 @@ #: | git | add, fetch... | set -A complete_git_1 -- \ - $(man -cT man git | grep -o 'git-[a-z-]*' | sort -u | cut -d '-' -f2-) \ + $(git --list-cmds=main) \ $(git config --get-regexp ^alias\. | awk -F '[\. ]' '{ print $2 }') diff --git a/completions/git.org b/completions/git.org index 71740b2..eb77318 100644 --- a/completions/git.org +++ b/completions/git.org @@ -8,6 +8,6 @@ The completions for level one are dynamically created using the following commands: #+begin_src ksh - $(man -cT man git | grep -o 'git-[a-z-]*' | sort -u | cut -d '-' -f2-) \ + $(git --list-cmds=main) \ $(git config --get-regexp ^alias\. | awk -F '[\. ]' '{ print $2 }') #+end_src