Add Git helper functions

This commit is contained in:
Shadowfacts 2016-12-17 11:47:17 -05:00
parent 888d03701d
commit 22643050ee
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 27 additions and 0 deletions

27
.zshrc
View File

@ -56,5 +56,32 @@ up() {
cd $str"$2"
}
# Git helper functions
psh() {
branch=`git branch 2> /dev/null | grep \* | awk '{print $2}'`
git push origin $branch "$@"
}
pll() {
branch=`git branch 2> /dev/null | grep \* | awk '{print $2}'`
git pull origin $branch "$@"
}
a() {
git add "$@"
}
s() {
git status
}
c() {
git commit "$@"
}
ca() {
git commit --amend "$@"
}
# default file openings
alias -s ipr=open