# disable the annoying terminal bell
# http://superuser.com/a/1123198/32418
local TERMINAL_PLIST
local TERMINAL_THEME
TERMINAL_PLIST="$HOME/Library/Preferences/com.apple.Terminal.plist"
TERMINAL_THEME=$(/usr/libexec/PlistBuddy -c "Print 'Default Window Settings'" "$TERMINAL_PLIST")
/usr/libexec/PlistBuddy -c "Set 'Window Settings':$TERMINAL_THEME:Bell false" "$TERMINAL_PLIST"
/usr/libexec/PlistBuddy -c "Set 'Window Settings':$TERMINAL_THEME:VisualBellOnlyWhenMuted false" "$TERMINAL_PLIST"
Set: Entry, "Window Settings:Basic:Bell", Does Not Exist
Set: Entry, "Window Settings:Basic:VisualBellOnlyWhenMuted", Does Not Exist
On new machines, should remove it until I figure out a solution that works.