Advertisement
Guest User

Untitled

a guest
May 21st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #!/bin/bash
  2. # altera o editor padrao do git
  3. git config --global core.editor "subl --wait"
  4.  
  5. # adiciona atalhos ao bash_profile
  6. FILE=~/.bash_profile
  7. if [ -f $FILE ]; then
  8. sed -i -e '$a\
  9. alias gst="git status "\
  10. alias ga="git add "\
  11. alias gaa="git add -A "\
  12. alias gb="git branch "\
  13. alias gc="git commit "\
  14. alias gcm="git commit -m "\
  15. alias go="git checkout "' ~/.bash_profile
  16. else
  17. touch ~/.bash_profile && \
  18. sed -i -e '$a\
  19. alias gst="git status "\
  20. alias ga="git add "\
  21. alias gaa="git add -A "\
  22. alias gb="git branch "\
  23. alias gc="git commit "\
  24. alias gcm="git commit -m "\
  25. alias go="git checkout "\
  26. [[ -f ~/.bashrc ]] && . ~/.bashrc' ~/.bash_profile
  27. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement