Commits

tednaleid  committed d403208

latest from home

  • Participants
  • Parent commits f9ad6a6

Comments (0)

Files changed (1)

File zshrc_general

 
 alias cdw='cd ${WORKSPACE_DIR}'
 
-cdDirname() {
-	cd $(dirname $1) 
-}
-
-alias cdd=cdDirname
-
 cdWhichDirname() {
 	cd $(dirname =$1) 
 }
 alias oc='open -a Console.app'
 alias airport='/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I'
 
-alias fsu='sudo fs_usage -e -f filesystem|grep -v CACHE_HIT| grep -v Terminal | grep -v grep'
+alias fsu='sudo fs_usage -e -f filesystem|grep -v CACHE_HIT| grep -v Terminal | grep -v grep | grep -v iTerm | grep -v ssh | grep -v'
 
 alias lcl='launchctl list'
 alias lcs='launchctl start'
 # add coloration to a file using python pygments: sudo easy_install pygments
 alias pyg='pygmentize -l ruby -P "style=native" -f rtf -o out.rtf '
 
+alias jsonpretty='curl "$*" | python -mjson.tool | pygmentize -l javascript'
+
 alias ec2i=ec2_instance_info
 function ec2_instance_info() {
 	echo "information for current ec2 instance"
 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;'
 
 
-alias grails="execute_grails_version grails"
-alias grails-debug="execute_grails_version grails-debug"
-
-function execute_grails_version() {
-    GRAILS_CMD=$1
-    shift
-    if [ -f application.properties ]; then
-        export GRAILS_VERSION=`grep app.grails.version application.properties | sed -E 's/.*=(.*)/\1/'`
-        export GRAILS_HOME="/usr/local/grails-$GRAILS_VERSION"
-        echo "application.properties found, using \$GRAILS_HOME of $GRAILS_HOME"
-    else 
-        echo "application.properties NOT found, leaving \$GRAILS_HOME as $GRAILS_HOME"
-    fi
-
-    if [ ! -d $GRAILS_HOME ]; then
-        echo "ERROR: Unable to find \$GRAILS_HOME directory at $GRAILS_HOME"
-        exit 1
-    fi
-
-    echo $GRAILS_HOME/bin/$GRAILS_CMD $*
-    $GRAILS_HOME/bin/$GRAILS_CMD $*
-}
-
-
 # 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