<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>README.markdown</filename>
    </added>
    <added>
      <filename>bash/aws.sh</filename>
    </added>
    <added>
      <filename>bash/git_autocompletion.sh</filename>
    </added>
    <added>
      <filename>bash/ruby_switcher.sh</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -46,14 +46,15 @@ alias m8prof='m ~/src/scripts/profile.d/'
 # ignore svn metadata - pipe this into xargs to do stuff
 alias no_svn=&quot;find . -path '*/.svn' -prune -o -type f -print&quot;
 
-function findfile { find . -name \*$1\*
-}
-function orig { mv $1 orig-$1 ; cp orig-$1 $1; ls -lt $1 orig-$1
-}
-function ps? { ps -aux | grep -i $* | grep -v grep 
+# grep for a process
+function psg {
+  FIRST=`echo $1 | sed -e 's/^\(.\).*/\1/'`
+  REST=`echo $1 | sed -e 's/^.\(.*\)/\1/'`
+  ps aux | grep &quot;[$FIRST]$REST&quot;
 }
 
 # Mac style apache control
+# TODO init this style of aliases for darwin arch
 # alias htstart='sudo /System/Library/StartupItems/Apache/Apache start'
 # alias htrestart='sudo /System/Library/StartupItems/Apache/Apache restart'
 # alias htstop='sudo /System/Library/StartupItems/Apache/Apache stop'
@@ -69,7 +70,6 @@ alias docs='cd ~/documents'
 alias scripts='cd ~/src/scripts'
 
 alias h?=&quot;history | grep &quot;
-alias ps?=&quot;ps aux | grep &quot;
 
 # display battery info on your Mac
 # see http://blog.justingreer.com/post/45839440/a-tale-of-two-batteries</diff>
      <filename>bash/aliases.sh</filename>
    </modified>
    <modified>
      <diff>@@ -10,6 +10,15 @@ __prompt_command() {
 		echo ${sub_dir#/}
 	}
 
+
+  # http://github.com/blog/297-dirty-git-state-in-your-prompt
+  function parse_git_dirty {
+    [[ $(git status 2&gt; /dev/null | tail -n1) != &quot;nothing to commit (working directory clean)&quot; ]] &amp;&amp; echo &quot;${_bold}*${_normal}&quot;
+  }
+  function parse_git_branch {
+    git branch --no-color 2&gt; /dev/null | sed -e '/^[^*]/d' -e &quot;s/* \(.*\)/\1$(parse_git_dirty)/&quot;
+  } 
+  
 	git_dir() {
 		base_dir=$(git rev-parse --show-cdup 2&gt;/dev/null) || return 1
 		if [ -n &quot;$base_dir&quot; ]; then
@@ -19,8 +28,7 @@ __prompt_command() {
 		fi
 		sub_dir=$(git rev-parse --show-prefix)
 		sub_dir=&quot;/${sub_dir%/}&quot;
-		ref=$(git symbolic-ref -q HEAD || git name-rev --name-only HEAD 2&gt;/dev/null)
-		ref=${ref#refs/heads/}
+    ref=$(parse_git_branch)
 		vcs=&quot;git&quot;
 		alias pull=&quot;git pull&quot;
 		alias commit=&quot;git commit -v -a&quot;</diff>
      <filename>bash/bash_vcs.sh</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,10 @@
 # Aliases for getting around on a deployed production/staging Rails server.  
-
-if [ -z &quot;${PROJECT_DIR}&quot; ]; then
-	echo &quot;You must define PROJECT_DIR in ~/.bash_profile for this to work.&quot;
+if [ -z &quot;${PROJECT_ROOT}&quot; ]; then
+	echo &quot;You must define PROJECT_ROOT in ~/.bash_profile for this to work it should point at the deploy_to location of your app.&quot;
 fi
 
 # TODO add support and autodetection for /data root, maybe the /u root, and allowing user to override the root
-PROJECT_ROOT=&quot;/var/www/domains/${PROJECT_DIR}/www/app&quot;
+
 PROJECT_CURRENT=&quot;${PROJECT_ROOT}/current&quot;
 PROJECT_SHARED=&quot;${PROJECT_ROOT}/shared&quot;
 </diff>
      <filename>bash/deploy.sh</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 # Thanks to Geoffrey's peepcode for many of these
 alias g='git '
 alias gst='git status'
+alias gs='git status'
 alias gl='git pull'
 alias gp='git push'
 alias gd='git diff | mate'
@@ -14,10 +15,3 @@ alias gpp='git pull; git push'
 # For when you are stuck between worlds...
 alias gsd='git svn dcommit'
 alias gsr='git svn rebase' 
-
-# git auto completion - don't write your own when its already been done (better) and is in git-core
-#   sudo port install git-core +bash_completion 
-if [ -f /opt/local/etc/bash_completion ]; then
-	. /opt/local/etc/bash_completion
-  complete -o default -o nospace -F _git g
-fi</diff>
      <filename>bash/git.sh</filename>
    </modified>
    <modified>
      <diff>@@ -10,6 +10,9 @@ fi
 for PARENT_DIR in ${PROJECT_PARENT_DIRS[@]} ; do
   if [ -d &quot;$PARENT_DIR&quot; ]; then
     for PROJECT_DIR in $(ls $PARENT_DIR); do
+			if [ ! -z `which $PROJECT_DIR` ]; then
+        continue # don't set alias if there is something already a command on the path with the same name
+      fi
 			if [ -d &quot;$PARENT_DIR/$PROJECT_DIR&quot; ]; then
 	      alias &quot;$PROJECT_DIR&quot;=&quot;cd $PARENT_DIR/$PROJECT_DIR&quot;
 			fi</diff>
      <filename>bash/project_aliases.sh</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@ alias rdfl='rake db:fixtures:load'
 alias rdr='rake db:rollback'
 alias rroutes='rake routes'
 alias mroutes='rroutes | mate'
-alias rmate='mate *.rb Rakefile README* app config doc db lib public script spec test stories features'
+alias rmate='mate *.rb Rakefile README* app config doc examples db lib public script spec test stories features'
 # capistrano
 alias csd='cap staging deploy'
 </diff>
      <filename>bash/rails.sh</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,6 @@
 # always load gems for ruby
 export RUBYOPT=rubygems
 
-# this is broken - disabling for now...
-# complete -C ~/src/relevance/etc/bash/rake_autocompletion.rb -o default rake
-
 # rubygems shortcuts (http://stephencelis.com/archive/2008/6/bashfully-yours-gem-shortcuts)
 alias gems='cd /opt/local/lib/ruby/gems/1.8/gems'
 export GEMDIR=`gem env gemdir`
@@ -16,6 +13,10 @@ _gemdocomplete() {
 }
 complete -o default -o nospace -F _gemdocomplete gemdoc
 
+gemlite() {
+  gem install $1 --no-rdoc --no-ri
+}
+
 # unit_record and autotest
 alias autou='autotest'
 alias autof='AUTOTEST=functional autotest'</diff>
      <filename>bash/ruby.sh</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>71e6a4b837aea07c6479c536f5e040c45a98d31b</id>
    </parent>
    <parent>
      <id>c0f4ad613c208eb80a239e1c986ecc9e29aa1d9e</id>
    </parent>
  </parents>
  <author>
    <name>Jason Rudolph</name>
    <email>github@jasonrudolph.com</email>
  </author>
  <url>http://github.com/relevance/etc/commit/1fde16029946890f923f64d258513afbdb8bdc88</url>
  <id>1fde16029946890f923f64d258513afbdb8bdc88</id>
  <committed-date>2009-02-20T18:53:39-08:00</committed-date>
  <authored-date>2009-02-20T18:53:39-08:00</authored-date>
  <message>Merge branch 'master' of git@github.com:relevance/etc</message>
  <tree>ae3e34a3d475462238095aa209b9b31209e74fa7</tree>
  <committer>
    <name>Jason Rudolph</name>
    <email>github@jasonrudolph.com</email>
  </committer>
</commit>
