Skip to content

Instantly share code, notes, and snippets.

@murilogteixeira
Last active July 1, 2020 21:33
Show Gist options
  • Save murilogteixeira/9ccf0fcdee8b2cad82bebe8e43ed2b05 to your computer and use it in GitHub Desktop.
Save murilogteixeira/9ccf0fcdee8b2cad82bebe8e43ed2b05 to your computer and use it in GitHub Desktop.
My .bash_profile macOS.
#Git
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
#Pasta de shell scripts
export PATH=$PATH:~/development/shell/
alias watch='watch.sh'
alias tomcat='tomcat.sh'
alias maven='maven.sh'
#Flutter
export PATH="$PATH:~/development/flutter/bin"
#Maven
export M2_HOME=~/development/apache-maven/
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
#Node
export PATH="$PATH:/usr/local/bin/node"
#NPM
export PATH="$PATH:/usr/local/bin/npm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment