Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # altera o editor padrao do git
- git config --global core.editor "subl --wait"
- # adiciona atalhos ao bash_profile
- FILE=~/.bash_profile
- if [ -f $FILE ]; then
- sed -i -e '$a\
- alias gst="git status "\
- alias ga="git add "\
- alias gaa="git add -A "\
- alias gb="git branch "\
- alias gc="git commit "\
- alias gcm="git commit -m "\
- alias go="git checkout "' ~/.bash_profile
- else
- touch ~/.bash_profile && \
- sed -i -e '$a\
- alias gst="git status "\
- alias ga="git add "\
- alias gaa="git add -A "\
- alias gb="git branch "\
- alias gc="git commit "\
- alias gcm="git commit -m "\
- alias go="git checkout "\
- [[ -f ~/.bashrc ]] && . ~/.bashrc' ~/.bash_profile
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement