Skip to content

Instantly share code, notes, and snippets.

@Bazze Bazze/.bash_profile
Last active Jul 26, 2016

Embed
What would you like to do?
.bash_profile
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# Yes, I'm lazy
alias ls='ls -laGFh'
# Always do vagrant up with --provision
vagrant() { if [[ $@ == "up" ]]; then command vagrant up --provision | more; else command vagrant "$@"; fi; }
USER_COLOR='32;1m'
GIT_PS1_SHOWDIRTYSTATE=1
PS1='\[\033[$USER_COLOR\]\u \[\033[33;1m\]\w\[\033[0;37m\]$(__git_ps1)\n\$ '
if [[ $SSH_CONNECTION ]]; then
# show the hostname in prompt if logged in via SSH
PS1='\[\033[$USER_COLOR\]\u@\[\e[35;1m\]\h\[\033[33;1m\]\w\[\033[0;37m\]$(__git_ps1)\$ '
fi
HISTCONTROL=erasedups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.