From 75f33dc0d5dd97b91491fcc4ef561f4894a545f3 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 31 Aug 2012 16:38:37 +0900 Subject: [PATCH] add func mac_start_daemon --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.sh b/setup.sh index d791dee..d60bb7f 100755 --- a/setup.sh +++ b/setup.sh @@ -82,8 +82,15 @@ mac_defaults(){ #defaults write com.apple.dashboard mcx-disabled -bool YES } +mac_start_daemon(){ + test "`uname`" = Darwin || return 1 + + sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist +} + get_install_script http://www.frexx.de/xterm-256-notes/data/colortable16.sh http://www.frexx.de/xterm-256-notes/data/256colors2.pl git_config mac_defaults +mac_start_daemon