Commits

tednaleid committed f3b7d66

clojure aliases

Comments (0)

Files changed (1)

 
 export PYTHONPATH=/usr/local/lib/python2.6/site-packages
 
-export M2_HOME=/usr/local/maven
-export M2=$M2_HOME/bin
-
+#export M2_HOME=/usr/local/maven
+#export M2=$M2_HOME/bin
 
 export CLICOLOR="xterm-color"
 
 export JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=512m"
 
 #export GRADLE_OPTS="-Xms2048m -Xmx2048m -XX:MaxPermSize=1024m"
+export GRADLE_HOME='/usr/local/gradle'
 export GRADLE_OPTS="-Xmx2048m -XX:MaxPermSize=1024m"
 
 # for X11 forwarding, (need to have X11.app running (in applications/utilities after install))
 
 export RUBYOPT=rubygems
 
-PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$GROOVY_HOME/bin:$GRAILS_HOME/bin:/usr/local/redis:${PATH}"
+PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$GROOVY_HOME/bin:$GRAILS_HOME/bin:$GRADLE_HOME/bin:/usr/local/redis:${PATH}"
 #PATH="$HOME/bin:/opt/local/sbin:/opt/local/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/tomcat/bin:/usr/local/ant/bin:/usr/local/groovyserv/bin:$GROOVY_HOME/bin:$GRAILS_HOME/bin:$CATALINA_HOME/bin:/usr/local/redis:$M2:$SCALA_HOME/bin:$MONGODB_HOME/bin:$HOME/.gem/ruby/1.8/bin:${PATH}"
 
 
 
 alias ipadchrome='open /Applications/Google\ Chrome.app   --args -user-agent="Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10"'
 
+# from steve losh tweet
+alias collapse="sed -e 's/  */ /g'"
+alias cuts="cut -d' '"
+function psg() { ps auxww | grep $* | grep -v grep | collapse | cuts -f 2,11- }
+
 alias mz='mate $ZSHDIR'  # open all .zshrc files in textmate
 # function v() {
 #     if [ -d $1 ]; then
 # show open ports
 alias op='lsof -i'
 
+alias openports='lsof -Pnl +M -i4'
+
 alias nsop='netstat -tunl -p tcp'
 
 # scan another machine's ports
 
 ## GROOVY/GRAILS ############################################################################################################
 
-alias rmideacache='rm -rf ~/Library/Caches/IntelliJIdea90/caches'
+alias rmideacache='rm -rf ~/Library/Caches/IntelliJIdea11/caches'
 
 alias tpush='hg commit || hg fetch && gta && hg push'
 alias tspush='hg commit || hg fetch && splitTests.groovy && hg push'
 alias testlogts='for F in `grep -lE "FAILED|Caused\ an\ ERROR" test-*/test-reports/plain/*.txt`; do echo ">>> opening" $F; open -a Console $F; done;'
 
 
-# grails-debug-suspend doesn't exist by default, it's a copy of grails-debug with the suspend flag changed to "y" so that
-# we can attach a remote debugger before it proceeds past startup
-
 # aliases where you can optionally pass in a set of tests to run (or no argument to run all tests in that group)
 alias gta=grailsTestApp
 alias gtad=grailsTestAppDebug
 function grailsTestApp() { grailsTest grails "" $1 }
 function grailsTestAppFailed() { grailsFailedTests grails "" }
 
-function grailsTestAppDebug() { grailsTest grails-debug-suspend "" $1 }
-function grailsTestAppDebugFailed() { grailsFailedTests grails-debug-suspend "" }
+function grailsTestAppDebug() { grailsTest grails-debug "" $1 }
+function grailsTestAppDebugFailed() { grailsFailedTests grails-debug "" }
 
 function grailsTestAppUnit() { grailsTest grails unit: $1 }
 function grailsTestAppUnitFailed() { grailsFailedTests grails unit: }
 
-function grailsTestAppUnitDebug() { grailsTest grails-debug-suspend unit: $1 }
-function grailsTestAppUnitDebugFailed() { grailsFailedTests grails-debug-suspend unit: }
+function grailsTestAppUnitDebug() { grailsTest grails-debug unit: $1 }
+function grailsTestAppUnitDebugFailed() { grailsFailedTests grails-debug unit: }
 
 function grailsTestAppIntegration() { grailsTest grails integration: $1 }
 function grailsTestAppIntegrationFailed() { grailsFailedTests grails integration: }
 
-function grailsTestAppIntegrationDebug() { grailsTest grails-debug-suspend integration: $1 }
-function grailsTestAppIntegrationDebugFailed() { grailsFailedTests grails-debug-suspend integration: }
+function grailsTestAppIntegrationDebug() { grailsTest grails-debug integration: $1 }
+function grailsTestAppIntegrationDebugFailed() { grailsFailedTests grails-debug integration: }
 
 function grailsFailedTests() {
 	grailsTest $1 $2 -rerun
 
 alias gra='grails run-app'
 alias grad='grails-debug run-app'
-alias grads='grails-debug-suspend run-app'
 
 # delete autogenerated unit test that was last argument of previous command, ex: grails create-domain com.example.Foo
 alias dut='rm -i test/unit/$(echo ${${(z)$(fc -ln 0 | grep grails\ create | tail -1)}[3]} | sed -e 's/\\\\./\\\\//g')Tests.groovy'
 alias gel='groovy -p -e'
 
 
-alias g136='switchGrails "groovy-1.7.10" "grails-1.3.6"'
-alias g136g8='switchGrails "groovy-1.8.2" "grails-1.3.6"'
-alias g20m2='switchGrails "groovy-1.8.2" "grails-2.0.0.M2"'
-alias ggit='switchGrails "groovy-1.8.2" "grails-git"'
+alias g135='switchGrails "groovy-1.7.5" "grails-1.3.5"'
+alias g136='switchGrails "groovy-1.8.4" "grails-1.3.6"'
+alias g136g8='switchGrails "groovy-1.8.4" "grails-1.3.6"'
+alias g200='switchGrails "groovy-1.8.4" "grails-2.0.0"'
+alias ggit='switchGrails "groovy-1.8.4" "grails-git"'
 
 function switchGrails() {
 	echo "Switching to groovy version: $1"
 
 ## CLOJURE ############################################################################################################
 
-export CLOJURE_JAR=/usr/local/Cellar/clojure/1.2.1/clojure.jar
+export CLOJURE_JAR=/usr/local/Cellar/clojure/1.3.0/clojure-1.3.0.jar
+
+# installed with brew install nailgun
+export NAILGUN_JAR='/usr/local/Cellar/nailgun/0.7.1/nailgun-0.7.1.jar'
+
+export VIMCLOJURE_SERVER_JAR='/Users/tnaleid/bin/vimclojure/server-2.3.0.jar'
 
 ## POSTGRESQL ############################################################################################################
 
 #
 alias rabbitmqstart='launchctl start com.rabbitmq.rabbitmq-server'
 alias rabbitmqstop='launchctl stop com.rabbitmq.rabbitmq-server'
+alias rabbitmqstatus='rabbitmqctl status'