Category Archives: mac


Today I came across two interesting things about Subversion. First of all, I think I installed the binary version from the Subversion web site on my Mac, since it is in /usr/local/bin, so I dunno if these are true about the one that comes with Leopard. Anyway, I just typed “svn commit” and emacs opened up. I didn’t even know I had emacs. So, apparently emacs is the default editor on this build of svn. Once I stumbled my way through the editing of the commit message, and remembered the key sequence to quit (CTRL-X, CTRL-C), a dialog popped up on my mac prompting me to allow the command line version of svn access to my keychain. I accepted and didn’t have to type in my password. Pretty fancy.

Leopard terminal color rotate

I used to use this trick to rotate colors between terminal windows. When I upgraded to Leopard, the windows stopped being transparent, which sucked. I have finally come up with a solution that uses a different technique. You will need to create several terminal profiles for different color schemes. The cool thing about this way of doing it is that you can use different transparency settings for different colors. You should call the new profiles “rotate X” where X is a number. Then you install this script as /Users/alwold/ or some such thing:

if [ -e ~/.lastterm ]; then
LAST_PROFILE=`cat ~/.lastterm`
if [ “$LAST_PROFILE” == “” ]; then
if [ “$LAST_PROFILE” == “6” ]; then
echo tell application \”Terminal\” to set current settings of first window to settings set \”rotate $LAST_PROFILE\” |osascript
echo $LAST_PROFILE > ~/.lastterm

Finally, you need to call that script from your .profile (or you can just put the whole script in your .profile). Also, the script assumes you have rotate 1 – rotate 5. If your number of profiles is different, change the 6 accordingly.