Skip to content

Instantly share code, notes, and snippets.

@Bazze
Last active July 26, 2016 05:45
Show Gist options
  • Save Bazze/8d1991287bd76aa23788 to your computer and use it in GitHub Desktop.
Save Bazze/8d1991287bd76aa23788 to your computer and use it in GitHub Desktop.
.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