Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

made addall and removeall work with git and svn

  • Loading branch information...
commit ffd38b4e923edf67caad8989ae0d66d4752d24cb 1 parent c89d735
steve authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 profile
7 profile
@@ -28,8 +28,8 @@ done
28 28 alias localhost="open http://localhost:3000 -a 'Safari Webkit'"
29 29 alias flocalhost="open http://localhost:3000 -a Firefox"
30 30 alias slocalhost="open http://localhost:3000 -a Safari"
31   -alias addall="svn st | grep ? | cut -d' ' -f7 | xargs svn add"
32   -alias removeall="svn st | grep ? | cut -d' ' -f7 | xargs rm -Rf"
  31 +alias addall="test -e .svn && (svn st | grep ? | cut -d' ' -f7 | xargs svn add) || git add ."
  32 +alias removeall="test -e .svn && (svn st | grep ? | cut -d' ' -f7 | xargs rm -Rf) || (git status | grep deleted: | cut -d' ' -f 5 | xargs git rm)"
33 33 alias dbm="rake db:migrate && rake db:test:prepare"
34 34 alias dbfl="rake db:fixtures:load"
35 35 alias dbr="rake db:rebuild"
@@ -38,7 +38,8 @@ do
38 38 alias sql$var="mysqladmin -u root $var"
39 39 done
40 40
41   -for var in "server" "generate" "console" "destroy" "plugin"
  41 +alias ss="test -d ./script && script/server || serve"
  42 +for var in "generate" "console" "destroy" "plugin"
42 43 do
43 44 alias s${var:0:1}="script/$var"
44 45 done

0 comments on commit ffd38b4

Please sign in to comment.
Something went wrong with that request. Please try again.