List git commands simply and portably

This commit is contained in:
Felix Hanley 2021-03-24 09:42:54 +11:00
parent 5ca81764aa
commit 0515b471fd
2 changed files with 2 additions and 2 deletions

View File

@ -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 }')

View File

@ -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