diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-09-13 11:20:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-13 11:20:20 +0200 |
commit | 093b56a7d769d15bdcc2c5300bc4ebedc9d0a837 (patch) | |
tree | fe94ea740d2aeb5dc1fae0377caec7e7f6a215f7 /plugins | |
parent | ddd359dd668f448856438304bedfe952d1749efd (diff) | |
download | zsh-093b56a7d769d15bdcc2c5300bc4ebedc9d0a837.tar.gz zsh-093b56a7d769d15bdcc2c5300bc4ebedc9d0a837.tar.bz2 zsh-093b56a7d769d15bdcc2c5300bc4ebedc9d0a837.zip |
git: fix gtl alias argument
Fixes the error `no matches found` because the argument is not quoted.
See https://github.com/robbyrussell/oh-my-zsh/pull/7629#issuecomment-531151821
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/git/git.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 2edee0298..d8c4cffd1 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -243,7 +243,7 @@ alias gswc='git switch -c' alias gts='git tag -s' alias gtv='git tag | sort -V' -alias gtl='gtl(){ git tag --sort=-v:refname -n -l ${1}* }; noglob gtl' +alias gtl='gtl(){ git tag --sort=-v:refname -n -l "${1}*" }; noglob gtl' alias gunignore='git update-index --no-assume-unchanged' alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1' |