From cf81c1e7b07aa8775e0c3fc6825363178cdcfd7c Mon Sep 17 00:00:00 2001 From: "Adam A.G. Shamblin" Date: Fri, 31 May 2013 16:36:09 -0600 Subject: [PATCH] Aliased to new git. --- dotbash_profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5