-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.setupMyOSX
executable file
·33 lines (24 loc) · 1.27 KB
/
.setupMyOSX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
echo "Setting up auxiliary OS X stuff.."
# Display battery life percentage
defaults write com.apple.menuextra.battery ShowPercent -string "YES"
# Display IP && hostname when clicking the Clock tray icon
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
# Language, locale and so on settings
defaults write NSGlobalDomain AppleLanguages -array "en" "el"
defaults write NSGlobalDomain AppleLocale -string "en_GB@currency=EUR"
defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters"
defaults write NSGlobalDomain AppleMetricUnits -bool true
echo "Launching launchctl to build up locate's database.."
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
echo "Setting up some Finder stuff.."
# some Finder settings to display hidden files, show fullpath
# and file extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
defaults write com.apple.finder AppleShowAllFiles -boolean true
# restart finder
killall Finder
# disable pressing a key repeatedly show up similar chars/symbols
# and instead make it repeat the char as long its pressed down
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
echo "All done!"