All posts

Synchronizing 1Password data between two local accounts (howto)

September 29, 2008
I am a big fan of the incredibly useful 1Password. The latest beta release (2.8.3.BETA-11) introduces a new keychain format that, among other things, allows 1Password to detect changes made to the file by other programs and reload the changes on the fly. I am using this now to keep my 1P data synchronized between my work and personal accounts on my machine. Here's what I did:

  1. In my work account (dza), switch to the AgileKeyChain format by following the instructions.
  2. Modify the ACL for my ~/Library/Application Support/1Password/ folder to allow my personal account (zamboni) read/write access. I did this using the "Sharing & Permissions" section of the Info dialog for the folder, and then choosing "Apply to enclosed items" from the cogwheel menu in that same section.
  3. Switch to my personal account.
  4. Quit 1Password, run the defaults command from the instructions, restart 1Password.
  5. Export my existing 1Password data in the "1Password Interchange file" format. To do this, choose File -> Export all -> 1Password Interchange File, and save it to a file in my desktop.
  6. Double click /Users/dza/Library/Application Support/1Password/1Password.agilekeychain and click "yes" to start using that file.
  7. Import the data from step 5: File -> Import, and follow the prompts. Wait for the data to import.
  8. Switch back to my work account and verify that the imported items are seen there as well.

Adding growl notification to Raymond Page's bash prompt code

September 8, 2008

Update (2008/09/10): Giles Orr kindly pointed out that he is not the author of the bash prompt package I use, I have updated to give proper credit to the author, Raymond Page.

For some time I have used Raymond Page's bash prompt code (heavily based on the work by Giles Orr in the Bash Prompt HOWTO, you can get it at http://gentoo-wiki.com/TIP_Prompt_Magic or http://code.google.com/p/homenix/source/browse/, you need to get .prompt, .prompt_functions and .prompt_config from the trunk/ directory), which I like very much because it is highly customizable, and although a lot of the functions are Linux-specific, it can easily be made to work on Mac OS X. It features context-dependent prompt colorization (e.g. based on whether the current directory is writable and on the machine load), automatic shortening of the prompt based on window width, and many other features.