aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManpreet Singh <junkblocker@yahoo.com>2014-01-07 18:08:33 -0800
committerMathias Bynens <mathias@qiwi.be>2014-01-10 12:11:49 +0100
commitd2ca315de28315ae094c55ff77dcdad8337b2d9c (patch)
tree99d234807bf134dd46863f77abae06fa9299726b
parentd8ac2c9544eb491acb5618e5247ec58a7d269504 (diff)
downloaddotfiles-d2ca315de28315ae094c55ff77dcdad8337b2d9c.tar.gz
dotfiles-d2ca315de28315ae094c55ff77dcdad8337b2d9c.tar.bz2
dotfiles-d2ca315de28315ae094c55ff77dcdad8337b2d9c.zip
.osx: Support multiple `systemuiserver` pref files
Closes #319.
-rwxr-xr-x.osx10
1 files changed, 6 insertions, 4 deletions
diff --git a/.osx b/.osx
index 3141d5d..df1a86f 100755
--- a/.osx
+++ b/.osx
@@ -28,10 +28,12 @@ sudo nvram SystemAudioVolume=" "
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Menu bar: hide the Time Machine, Volume, User, and Bluetooth icons
-defaults write ~/Library/Preferences/ByHost/com.apple.systemuiserver.* dontAutoLoad -array \
- "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \
- "/System/Library/CoreServices/Menu Extras/Volume.menu" \
- "/System/Library/CoreServices/Menu Extras/User.menu"
+for domain in ~/Library/Preferences/ByHost/com.apple.systemuiserver.*; do
+ defaults write "${domain}" dontAutoLoad -array \
+ "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \
+ "/System/Library/CoreServices/Menu Extras/Volume.menu" \
+ "/System/Library/CoreServices/Menu Extras/User.menu"
+done
defaults write com.apple.systemuiserver menuExtras -array \
"/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \
"/System/Library/CoreServices/Menu Extras/AirPort.menu" \