Created
May 16, 2018 00:51
-
-
Save DavidBindloss/160068b3d1c36e3af42d9453b1487177 to your computer and use it in GitHub Desktop.
Bash Profile
This file contains 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
if [ -f ~/.git-completion.bash ]; then | |
source ~/.git-completion.bash | |
fi | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
if [ -f ~/.bash_aliases ]; then | |
source ~/.bash_aliases | |
fi | |
if [ -f ~/.gvm/scripts/gvm ]; then | |
source ~/.gvm/scripts/gvm | |
fi | |
if [ -f ~/perl5/perlbrew/etc/bashrc ]; then | |
source ~/perl5/perlbrew/etc/bashrc | |
fi | |
export PATH=$PATH:/usr/bin:/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin | |
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
export PATH=$PATH:"/usr/local/Cellar/go/1.10.1/bin" | |
# Android | |
export ANDROID_HOME="/usr/local/share/android-sdk" | |
export PATH="$PATH:/$ANDROID_HOME/build-tools/27.0.3" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
if [ -z "$SSH_AUTH_SOCK" ] ; then | |
eval `ssh-agent -s` | |
ssh-add | |
fi | |
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh | |
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk" | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
# Color the hostname | |
export PS1="\$(parse_git_branch) > " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment