Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Glenn Hoetker <Glenn.Hoetker@asu.edu> |
To | Statalist <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: profile.do file |
Date | Wed, 27 Nov 2013 17:07:27 +0000 |
My profile.do consists of several shortcuts for things I either do repeatedly or can never remember the context for: // To display all the dta files in the current directory capture program drop dta program define dta ls *.dta end // To display all the do files in the current directory capture program drop ddo program define ddo ls *.do end // To open the current directory in the Finder (may need to be tweaked for other than Mac) capture program drop oo program define oo !open . end //To turn trace on. Optionally, "stn #" sets tracedepth to #. Otherwise, it leaves it unchanged. capture program drop stn program define stn if "`1'" != "" { set tracedepth `1' } set trace on end //Turn trace off capture program drop stf program define stf set trace off end //Edit the profile.do file, since I can never remember where it is capture program drop editprofile program define editprofile doedit "/Users/ghoetker/Library/Application Support/Stata/profile.do" end Glenn Hoetker Arizona State University | W. P. Carey School of Business Dean's Council Distinguished Scholar & Associate Professor Affiliate Professor Sandra Day O'Conner College of Law Senior Sustainability Scholar Global Institute of Sustainability Faculty Fellow Center for Science, Law & Innovation Glenn.Hoetker@asu.edu | http://hoetker.faculty.asu.edu | 480-965-4566 * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/