SHARE
TWEET

Untitled

a guest Sep 16th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [[ $- == *i* ]] || return 0
  2. export HISTSIZE=100000
  3. export HISTFILESIZE=100000
  4.  
  5. GIT_PS1_SHOWDIRTYSTATE=1
  6. #GIT_PS1_SHOWSTASHSTATE=1
  7. GIT_PS1_SHOWUNTRACKEDFILES=1
  8. GIT_PS1_SHOWUPSTREAM="verbose name"
  9. GIT_PS1_SHOWCOLORHINTS=1
  10. GIT_PS1_DESCRIBE_STYLE="branch"
  11.  
  12. alias gpom='git pull origin master'
  13. alias gpo='git pull origin'
  14. alias gchm='git checkout master'
  15. alias gch='git checkout'
  16.  
  17. gchpo () {
  18.     gch $1 && gpo $1
  19. }
  20.  
  21. alias gchpom='gchpo master'
  22.  
  23. gpopom () {
  24.     gpo $1 && gpom
  25. }
  26.  
  27. gchpopom () {
  28.     gchpo $1 && gpom
  29. }
  30.  
  31. alias gph='git push -u origin HEAD'
  32.  
  33. gpoph () {
  34.     gpo $1 && gph
  35. }
  36.  
  37. alias gpomph='gpoph master'
  38.  
  39. gchph () {
  40.     gch $1 && gph
  41. }
  42.  
  43. alias gchmph='gchph master'
  44.  
  45. gchpoph () {
  46.     gchpo $1 && gph
  47. }
  48.  
  49. alias gchpomph='gchpoph master'
  50. alias gchmpomph='gchpoph master'
  51.  
  52. # git recent branches
  53. alias grb='git branch --sort=-committerdate'
  54.  
  55. unyak () {
  56.     target_branch=${1:-'-'} # default first arg to '-'
  57.  
  58.     yak_branch=$(git rev-parse --abbrev-ref HEAD);
  59.    
  60.     git checkout $target_branch && git pull origin $yak_branch
  61. }
  62.  
  63. alias y='yarn'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top