Last active
July 18, 2021 19:58
-
-
Save reyx/9ee651f8dc6c470ddfe7d2911f2cd138 to your computer and use it in GitHub Desktop.
Personal .bash_profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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