function upDeployPortlet() { pushd ~/projects/uPortal/myuw-madison/ ant deployPortletApp -DportletApp="$@" popd }
Database Admin, software engineer, and technologist. This blog will cover things from: neat DBA stuff I figured out, Java code stuff (including framework reviews, etc...), and other random techy things that I find amusing.
Tuesday, June 18, 2013
pushd & popd
If you are ever writing a shell script that has to change the directory but you want to go back to wherever the user was, use pushd & popd.
Here is my example case where I wanted to write a shortcut for deploying a portlet to my portal project.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment