More intuitive alias name, add case insensitive search

This commit is contained in:
Christoph Bachhuber 2020-09-04 08:52:06 +02:00
commit fe9ec0e4a9
2 changed files with 4 additions and 2 deletions

View file

@ -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) |

View file

@ -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