#!/bin/sh # possibly add something here to ensure iTerm2 is installed using Homebrew # cask like in the previous example if [ -d "$HOME/.iterm2" ]; then echo "Setting iTerm preference folder" defaults write com.googlecode.iterm2 PreferredBaseDir "$HOME/.iterm2" defaults write com.googlecode.iterm2 PrefsCustomFolder "$HOME/.iterm2" fi