[zsh] Add some git related aliases
This commit is contained in:
parent
b4a82263b6
commit
fe03bb5b52
1 changed files with 10 additions and 0 deletions
10
rc
10
rc
|
@ -31,6 +31,10 @@ alias addkey="ssh-agent ~/.ssh/id_rsa"
|
||||||
alias pprint="python -c 'import sys,pprint; pprint.pprint(eval(sys.stdin.read()))'"
|
alias pprint="python -c 'import sys,pprint; pprint.pprint(eval(sys.stdin.read()))'"
|
||||||
alias pprint-json="python -c 'import sys,json;print json.dumps(json.load(sys.stdin), indent=2)'"
|
alias pprint-json="python -c 'import sys,json;print json.dumps(json.load(sys.stdin), indent=2)'"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Git
|
||||||
|
#
|
||||||
|
|
||||||
function g
|
function g
|
||||||
{
|
{
|
||||||
if [[ $# -gt 0 ]]; then
|
if [[ $# -gt 0 ]]; then
|
||||||
|
@ -41,6 +45,12 @@ function g
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alias gp='g p origin $gitbranch'
|
||||||
|
alias gpf='g p -f origin $gitbranch'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Setup
|
||||||
|
#
|
||||||
|
|
||||||
function configure_ls
|
function configure_ls
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue