diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-03-25 18:46:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 18:46:18 +0100 |
commit | f6a9a0a49855666f3311a2db040b9b27969da2bc (patch) | |
tree | cdb5b2752fc55713a7a45cbbfcaefab107355201 | |
parent | e59cc94805ebe76b0eb57de0b84e403583ebd4db (diff) | |
download | zsh-f6a9a0a49855666f3311a2db040b9b27969da2bc.tar.gz zsh-f6a9a0a49855666f3311a2db040b9b27969da2bc.tar.bz2 zsh-f6a9a0a49855666f3311a2db040b9b27969da2bc.zip |
git: fix grt on path with spaces
Fixes #7682
-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 4277ac664..6fc9b078b 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -226,7 +226,7 @@ alias grmc='git rm --cached' alias grmv='git remote rename' alias grrm='git remote remove' alias grset='git remote set-url' -alias grt='cd $(git rev-parse --show-toplevel || echo ".")' +alias grt='cd "$(git rev-parse --show-toplevel || echo .)"' alias gru='git reset --' alias grup='git remote update' alias grv='git remote -v' |