Compare commits

..
Author SHA1 Message Date
d793da180e feat(git): add grbia alias for interactive rebase with autosquash
`grbia` runs `git rebase --interactive --autosquash`, following the
existing `grbmia` naming. It has been proposed several times over the
years; this lands it and credits everyone who tried.

Fixes #13865

Co-authored-by: Tushar Mathur <194482+tusharmath@users.noreply.github.com>
Co-authored-by: Thomas Raimond <10564970+ThamosIO@users.noreply.github.com>
Co-authored-by: Clément <59260989+clegoffic@users.noreply.github.com>
Co-authored-by: Gaurav Yadav <160158213+MeGaurav4@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:25:45 -07:00
3 changed files with 2 additions and 17 deletions
-17
View File
@@ -110,23 +110,6 @@ bindkey -M emacs '^[[1;5D' backward-word
bindkey -M viins '^[[1;5D' backward-word
bindkey -M vicmd '^[[1;5D' backward-word
# [Keypad] - application mode (enabled above) makes the keypad send escape
# sequences instead of characters, so map them back to the plain keys
() {
local seq key
local -A keypad=(
'^[Op' '0' '^[Oq' '1' '^[Or' '2' '^[Os' '3' '^[Ot' '4'
'^[Ou' '5' '^[Ov' '6' '^[Ow' '7' '^[Ox' '8' '^[Oy' '9'
'^[On' '.' '^[Ol' ',' '^[Ok' '+' '^[Om' '-' '^[Oj' '*'
'^[Oo' '/' '^[OX' '=' '^[OM' '^M'
)
for seq key in "${(@kv)keypad}"; do
bindkey -M emacs -s "$seq" "$key"
bindkey -M viins -s "$seq" "$key"
bindkey -M vicmd -s "$seq" "$key"
done
}
bindkey '\ew' kill-region # [Esc-w] - Kill from the cursor to the mark
bindkey -s '\el' '^q ls\n' # [Esc-l] - run command: ls
+1
View File
@@ -156,6 +156,7 @@ plugins=(... git)
| `grba` | `git rebase --abort` |
| `grbc` | `git rebase --continue` |
| `grbi` | `git rebase --interactive` |
| `grbia` | `git rebase --interactive --autosquash` |
| `grbmi` | `git rebase $(git_main_branch) --interactive` |
| `grbmia` | `git rebase $(git_main_branch) --interactive --autosquash` |
| `grbo` | `git rebase --onto` |
+1
View File
@@ -357,6 +357,7 @@ alias grb='git rebase'
alias grba='git rebase --abort'
alias grbc='git rebase --continue'
alias grbi='git rebase --interactive'
alias grbia='git rebase --interactive --autosquash'
alias grbo='git rebase --onto'
alias grbs='git rebase --skip'
alias grbd='git rebase $(git_develop_branch)'