From fe9ec0e4a9423e775119747327568ca1a348b5c2 Mon Sep 17 00:00:00 2001 From: Christoph Bachhuber Date: Fri, 4 Sep 2020 08:52:06 +0200 Subject: [PATCH] More intuitive alias name, add case insensitive search --- plugins/git/README.md | 3 ++- plugins/git/git.plugin.zsh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/git/README.md b/plugins/git/README.md index 2c6ae59bf..32e416f76 100644 --- a/plugins/git/README.md +++ b/plugins/git/README.md @@ -74,12 +74,13 @@ plugins=(... git) | ggf | git push --force origin $(current_branch) | | ggfl | git push --force-with-lease origin $(current_branch) | | ggl | git pull origin $(current_branch) | -| ggn | git grep -n | | ggp | git push origin $(current_branch) | | ggpnp | ggl && ggp | | ggpull | git pull origin "$(git_current_branch)" | | ggpur | ggu | | ggpush | git push origin "$(git_current_branch)" | +| ggr | git grep -n | +| ggri | git grep -n -i | | ggsup | git branch --set-upstream-to=origin/$(git_current_branch) | | ggu | git pull --rebase origin $(current_branch) | | gpsup | git push --set-upstream origin $(git_current_branch) | diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index f25a40a97..352aa94f3 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -133,7 +133,8 @@ function ggl() { } compdef _git ggl=git-checkout -alias ggn='git grep -n' +alias ggr='git grep -n' +alias ggri='git grep -n -i' function ggp() { if [[ "$#" != 0 ]] && [[ "$#" != 1 ]]; then