1
0
Fork 0

Added lh and Prp shortmaps

master
Mike Gerwitz 2013-07-08 22:11:44 -04:00
parent cda202fd1d
commit fb0382ee10
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
git-shortmaps provides very concise (one- or two-character), user-configurable
commands for Git with support for Bash tab completion.
git-shortmaps provides very concise (mostly one- and two-character),
user-configurable commands for Git with support for Bash tab completion.
# shortmaps / Bash Completion
The `bash_completion` file contains Bash completion for custom commands and
@ -34,10 +34,12 @@ By default, the following mappings are available, each with tab completion:
* `d` - git diff
* `ds` - git diff --stat
* `f` - git fetch
* `lh` - git log --oneline --decorate --color | head
* `m` - git merge
* `p` - git push
* `P` - git pull
* `Pr` - git pull --rebase
* `Prp` - git pull --rebase && git push
* `R` - git rebase
* `Ri` - git rebase --interactive
* `Ra` - git rebase --abort

View File

@ -13,10 +13,12 @@ CS _git_commit :commit -S -am
d _git_diff :diff
ds _git_diff :diff --stat
f _git_fetch :fetch
lh _git_log |git log --oneline --decorate --color | head
m _git_merge :merge
p _git_push :push
P _git_pull :pull
Pr _git_pull :pull --rebase
Prp _git_pull |git pull --rebase && git push
R __git_rebase :rebase
Ri _git_rebase :rebase --interactive
Ra _git_rebase :rebase --abort