Anytime I find myself doing a repetitive mundane task .. I think why aren’t I scripting this? I hate the default white terminal theme that comes in OS X. I always find myself changing it to Homebew.
Here’s a sample script. You can simply change “Homebrew” to whatever terminal theme you want.
#!/bin/bash #set Terminal defaults sudo -u $USER defaults write /Users/$USER/Library/Preferences/com.apple.Terminal.plist "Default Window Settings" "Homebrew" sudo -u $USER defaults write /Users/$USER/Library/Preferences/com.apple.Terminal.plist "Startup Window Settings" "Homebrew" #set window width to 120 sudo /usr/libexec/PlistBuddy -c "Add :Window\ Settings:Homebrew:columnCount integer 120" /Users/$USER/Library/Preferences/com.apple.Terminal.plist defaults write /Users/$USER/Library/Preferences/com.apple.Terminal.plist "NSWindow Frame TTWindow Homebrew" "97 302 1075 366 0 0 1280 777 " #restart Terminal killall Terminal exit 0
Now that you can script it, you can add it to a post deployment script or launchagent that runs on the first login. So out of the gates you have a custom terminal. Then you can get real work done.