16 lines
426 B
Bash
Executable File
16 lines
426 B
Bash
Executable File
#!/bin/sh
|
|
|
|
system_type=$(uname -s)
|
|
|
|
if [ "$system_type" = "Darwin" ]; then
|
|
|
|
# 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
|
|
|
|
fi |