From: Adam A.G. Shamblin Date: Fri, 31 May 2013 22:36:09 +0000 (-0600) Subject: Aliased to new git. X-Git-Url: https://git.vexinglabs.com/?a=commitdiff_plain;h=cf81c1e7b07aa8775e0c3fc6825363178cdcfd7c;p=dotfiles.git Aliased to new git. --- diff --git a/dotbash_profile b/dotbash_profile index cacbf3a..9ec14a3 100644 --- a/dotbash_profile +++ b/dotbash_profile @@ -7,13 +7,15 @@ GREEN=$(tput setaf 64); BASE2=$(tput setaf 254); RESET=$(tput sgr0); +# Change the prompt character when encountering git repositories function prompt_char { git branch >/dev/null 2>/dev/null && echo '⤧ ' && return echo '$' } +# Automatically activate virtualenv when encountered, +# deactivate on exit function activate_env { - HAS_DEACTIVATE=`type -t deactivate` if [ -e env/bin/activate ] && [ "${#VIRTUAL_ENV}" -eq 0 ]; then @@ -33,3 +35,5 @@ export PS1='\[$ORANGE\]\u\[$RESET\] @ \[$YELLOW\]\h\[$RESET\] in \[$GREEN\]\w\[$ export PYTHONPATH="/usr/local/lib/python2.7/site-packages/:$PYTHONPATH" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* + +alias git=/usr/local/git/bin/git