Advertisement
Guest User

Untitled

a guest
May 25th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. # General
  2. alias plz='sudo'
  3. alias fucking='sudo'
  4. alias cls="clear"
  5. alias edt="vim ~/.bash_aliases"
  6. alias rld="source ~/.bash_aliases"
  7.  
  8. # Git helpers
  9. alias gitmaster='git checkout master'
  10. alias gitsync='git merge master'
  11. alias gitf='git fetch'
  12. alias bop='git stash pop'
  13. alias succ='git stash'
  14. alias branch="git status | awk 'NR==1{print $3}'"
  15. alias copybranch="git status | awk 'NR==1{print $3} | pbcopy"
  16. alias recent="git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(color:reset)'|column -ts'|' | less"
  17. alias all="git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)'|column -ts'|' | less"
  18. alias push="git push origin `git status | awk 'NR==1{print $3}'`"
  19. alias pushn="git push --no-verify origin `git status | awk 'NR==1{print $3}'`"
  20. alias pull="git pull origin `git status | awk 'NR==1{print $3}'`"
  21.  
  22. # Project specific
  23. alias commits='npm run commit'
  24. alias commitsr='npm run commit -- --retry'
  25. alias nwf="cd ~/$PROJECT_PATH"
  26. alias nwff="cd ~/$PROJECT_PATH/__fake_backend__"
  27.  
  28. source ~/git-helpers.sh
  29.  
  30. if [ -f ~/.git-completion.bash ]; then
  31. . ~/.git-completion.bash
  32. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement