fix(cli): get branch and tags from OMZ folder in omz changelog completion

This commit is contained in:
Marc Cornellà 2021-09-30 10:18:53 +02:00
parent 54783f66b8
commit 5f99eb5afd
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -35,7 +35,7 @@ function _omz {
elif (( CURRENT == 3 )); then elif (( CURRENT == 3 )); then
case "$words[2]" in case "$words[2]" in
changelog) local -a refs changelog) local -a refs
refs=("${(@f)$(command git for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}") refs=("${(@f)$(command git -C "$ZSH" for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}")
_describe 'command' refs ;; _describe 'command' refs ;;
plugin) subcmds=( plugin) subcmds=(
'disable:Disable plugin(s)' 'disable:Disable plugin(s)'