summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolas Garofil <nikolas@garofil.be>2021-10-04 10:43:13 +0200
committerGitHub <noreply@github.com>2021-10-04 10:43:13 +0200
commitadef0e6081789498156fa11455f3ab4f4d36525c (patch)
tree7289476016c9d748d7cbb361b3b7b03b8b9567a7
parent7152a942802b01cb74d7c0b99f3106f8af17439d (diff)
downloadzsh-adef0e6081789498156fa11455f3ab4f4d36525c.tar.gz
zsh-adef0e6081789498156fa11455f3ab4f4d36525c.tar.bz2
zsh-adef0e6081789498156fa11455f3ab4f4d36525c.zip
feat(git): run `gitk` in the background in `gk` and `gke` aliases (#9657)
-rw-r--r--plugins/git/README.md4
-rw-r--r--plugins/git/git.plugin.zsh4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/git/README.md b/plugins/git/README.md
index e53d93b0b..05ef25099 100644
--- a/plugins/git/README.md
+++ b/plugins/git/README.md
@@ -90,8 +90,8 @@ plugins=(... git)
| gignore | git update-index --assume-unchanged |
| gignored | git ls-files -v \| grep "^[[:lower:]]" |
| git-svn-dcommit-push | git svn dcommit && git push github $(git_main_branch):svntrunk |
-| gk | gitk --all --branches |
-| gke | gitk --all $(git log -g --pretty=%h) |
+| gk | gitk --all --branches &! |
+| gke | gitk --all $(git log -g --pretty=%h) &! |
| gl | git pull |
| glg | git log --stat |
| glgp | git log --stat -p |
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 76e0faed3..11dff99d9 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -201,8 +201,8 @@ alias gignore='git update-index --assume-unchanged'
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
alias git-svn-dcommit-push='git svn dcommit && git push github $(git_main_branch):svntrunk'
-alias gk='\gitk --all --branches'
-alias gke='\gitk --all $(git log -g --pretty=%h)'
+alias gk='\gitk --all --branches &!'
+alias gke='\gitk --all $(git log -g --pretty=%h) &!'
alias gl='git pull'
alias glg='git log --stat'