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
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