diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-09-30 10:18:53 +0200 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-09-30 10:18:53 +0200 |
commit | 5f99eb5afd3c19683f178ddb57bb9345391d3548 (patch) | |
tree | 26c03ebcc488425ac96f3ac25581935198e4798a /lib | |
parent | 54783f66b8188297448bc725c578fdc7647e9fa0 (diff) | |
download | zsh-5f99eb5afd3c19683f178ddb57bb9345391d3548.tar.gz zsh-5f99eb5afd3c19683f178ddb57bb9345391d3548.tar.bz2 zsh-5f99eb5afd3c19683f178ddb57bb9345391d3548.zip |
fix(cli): get branch and tags from OMZ folder in `omz changelog` completion
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cli.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh index 2189e24ca..f40a4226e 100644 --- a/lib/cli.zsh +++ b/lib/cli.zsh @@ -35,7 +35,7 @@ function _omz { elif (( CURRENT == 3 )); then case "$words[2]" in 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 ;; plugin) subcmds=( 'disable:Disable plugin(s)' |