mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-03 16:52:37 +01:00
bashrc & zshc & xsessionrc: Set update interval to 1 day on Mac.
Fixes #13
This commit is contained in:
parent
e35ad04f01
commit
3952e9973d
6
bashrc
6
bashrc
@ -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.
|
||||
|
@ -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
7
zshrc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user