]> Vexing Labs - dotfiles.git/commitdiff
Aliased to new git.
authorAdam A.G. Shamblin <adam.shamblin@gmail.com>
Fri, 31 May 2013 22:36:09 +0000 (16:36 -0600)
committerAdam A.G. Shamblin <adam.shamblin@gmail.com>
Fri, 31 May 2013 22:36:09 +0000 (16:36 -0600)
dotbash_profile

index cacbf3a5e5a16db7c16dcf2e2a783cde0113776f..9ec14a34ba0ccc0d0b3705d87ff11c18e5f2f479 100644 (file)
@@ -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