1
0
Fork 0

bd{,-} added

master
Mike Gerwitz 2015-05-11 15:06:15 -04:00
parent c3b5d2c0d9
commit 6748d2a31d
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
2 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,8 @@ By default, the following mappings are available, each with tab completion:
* `A` - git add -A
* `AS` - git add -A && git push
* `b` - git branch
* `bd` - git branch --delete
* `bd-` - delete branch `@{-1}`
* `bv` - git branch -v
* `B` - git bisect
* `Bs` - git bisect start

View File

@ -2,6 +2,8 @@ a _git_add :add
A _git_add :add -A
AS : |git add -A && git stash
b _git_branch :branch
bd _git_branch :branch -d
bd- : |ref="$( git rev-parse --symbolic-full-name @{-1} )"; git branch -d "${ref#refs/heads/*}"
bv _git_branch :branch -v
B _git_bisect :bisect
Bs _git_bisect :bisect start