Merge pull request #6 from felix/git-commands

List git commands simply and portably
This commit is contained in:
Aaron Bieber 2021-03-23 16:49:21 -06:00 committed by GitHub
commit fdbb432ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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