mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
More intuitive alias name, add case insensitive search
This commit is contained in:
parent
79206bc072
commit
fe9ec0e4a9
2 changed files with 4 additions and 2 deletions
|
|
@ -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) |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue