Git branch in prompt (with svn support)

I like having my git branch in my prompt, but I sadly still have to use subversion sometimes. So, I hacked something together (mostly out of this script for vcs info in your prompt) that gives either the current git branch or the current svn revision. In my .bash_profile, I include this file with source ~/sw/bash/vcs-prompt.bash.

Posted on December 19th | 1 comment | Filed Under: macintosh | read on

iPhone keychain (equivalent)

So, I got an iPhone. Yay. And then I was utterly crushed, because it dosen’t have Keychain. At all. No password remembering for you, Safari Mobile user!

I was even more crushed when I realized that almost all of my passwords are unique per-site jumbles of numbers and letters, thanks to Nic Wolff’s Password Generator. But! (And this is a really, amazingly huge but!) The password generator bookmarklet that I already use in Safari, in the Bookmarks bar, works on my iPhone!

So, I don’t actually have to remember my passwords. All I have to do is hit the bookmarks button and then tap on my bookmarklet (which synced over from Safari on my laptop). The bookmarklet does the JavaScript magic needed to generate my per-site password from my master password and the site’s domain name, and fills it in to the password blank for me. Totally awesome.

So after all that, it turns out that the sites I don’t use a unique password for are the ones that are going to suck, since I’ll have to type it in every time. Figures.

Update: Okay, sorry, the bookmarklet is near the bottom of this page. You want the “master password” version, so you can fill in passwords on your iPhone without lots of typing.

Posted on July 7th | 6 comments | Filed Under: macintosh | read on

View archives for December 2007.