bashrc & zshc & xsessionrc: Set update interval to 1 day on Mac.

Fixes #13
This commit is contained in:
Mika Suomalainen 2012-12-24 19:15:02 +02:00
parent e35ad04f01
commit 3952e9973d
3 changed files with 19 additions and 0 deletions

6
bashrc
View File

@ -192,6 +192,12 @@ if [ $UNAME = "Darwin" ]; then
defaults write com.apple.finder AppleShowAllFiles TRUE && defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
fi
# If we are on Mac, set update check interval to 1 day
if [[ $UNAME = "Darwin" && $USER = "root" ]]; then
defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency 1
fi
# The above requires at least Mountain Lion.
##### Aliases RJ706I #####
# To get sudo work with aliases.

View File

@ -9,6 +9,12 @@ if [ $UNAME = "Darwin" ]; then
defaults write com.apple.finder AppleShowAllFiles TRUE && defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
fi
# If we are on Mac, set update check interval to 1 day
if [[ $UNAME = "Darwin" && $USER = "root" ]]; then
defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency 1
fi
# The above requires at least Mountain Lion.
# Use gpg-agent
eval $(gpg-agent --daemon)

7
zshrc
View File

@ -122,6 +122,13 @@ if [ $UNAME = "Darwin" ]; then
defaults write com.apple.finder AppleShowAllFiles TRUE && defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
fi
# If we are on Mac, set update check interval to 1 day
if [[ $UNAME = "Darwin" && $USER = "root" ]]; then
defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency 1
fi
# The above requires at least Mountain Lion.
##### Aliases RJ706I #####
# To get sudo work with aliases.