Skip to content

Instantly share code, notes, and snippets.

@reyx
Last active July 18, 2021 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reyx/9ee651f8dc6c470ddfe7d2911f2cd138 to your computer and use it in GitHub Desktop.
Save reyx/9ee651f8dc6c470ddfe7d2911f2cd138 to your computer and use it in GitHub Desktop.
Personal .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
#Android
PATH=$PATH:$HOME/Android/Sdk:$HOME/Android/Sdk/tools
export PATH
PATH=$PATH:$HOME/Android/Sdk/platform-tools
export PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment