Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[ $- == *i* ]] || return 0
- export HISTSIZE=100000
- export HISTFILESIZE=100000
- GIT_PS1_SHOWDIRTYSTATE=1
- #GIT_PS1_SHOWSTASHSTATE=1
- GIT_PS1_SHOWUNTRACKEDFILES=1
- GIT_PS1_SHOWUPSTREAM="verbose name"
- GIT_PS1_SHOWCOLORHINTS=1
- GIT_PS1_DESCRIBE_STYLE="branch"
- alias gpom='git pull origin master'
- alias gpo='git pull origin'
- alias gchm='git checkout master'
- alias gch='git checkout'
- gchpo () {
- gch $1 && gpo $1
- }
- alias gchpom='gchpo master'
- gpopom () {
- gpo $1 && gpom
- }
- gchpopom () {
- gchpo $1 && gpom
- }
- alias gph='git push -u origin HEAD'
- gpoph () {
- gpo $1 && gph
- }
- alias gpomph='gpoph master'
- gchph () {
- gch $1 && gph
- }
- alias gchmph='gchph master'
- gchpoph () {
- gchpo $1 && gph
- }
- alias gchpomph='gchpoph master'
- alias gchmpomph='gchpoph master'
- # git recent branches
- alias grb='git branch --sort=-committerdate'
- unyak () {
- target_branch=${1:-'-'} # default first arg to '-'
- yak_branch=$(git rev-parse --abbrev-ref HEAD);
- git checkout $target_branch && git pull origin $yak_branch
- }
- alias y='yarn'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement