diff --git a/dotfiles/lib/mu4e_sync.sh b/dotfiles/lib/mu4e_sync.sh index 2764429d..1060d541 100755 --- a/dotfiles/lib/mu4e_sync.sh +++ b/dotfiles/lib/mu4e_sync.sh @@ -1,3 +1,2 @@ #!/usr/bin/env zsh -refresh_config -mu4e_sync_command +offlineimap diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index f9936e7d..7bea8099 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -287,7 +287,7 @@ function track_modified { echo "Press any key to execute find command" read -r key echo "Finding..." - find $1 -newer $timestamp_file + find $1 -cnewer "$timestamp_file" } function python_module_path { diff --git a/dotfiles/lib/shellrc/osx.sh b/dotfiles/lib/shellrc/osx.sh index 24a3b675..7fb8d4a7 100644 --- a/dotfiles/lib/shellrc/osx.sh +++ b/dotfiles/lib/shellrc/osx.sh @@ -43,7 +43,7 @@ function reload_user_agent { function reload_all_user_agents { sudo -v for agent in $(find -f ~/Library/LaunchAgents); do - reload_root_agent $agent + reload_user_agent $agent done } diff --git a/resources/LaunchAgents/org.imalison.mu4e-sync.plist b/resources/LaunchAgents/org.imalison.mu4e-sync.plist index 30ed4dd4..4b83d531 100644 --- a/resources/LaunchAgents/org.imalison.mu4e-sync.plist +++ b/resources/LaunchAgents/org.imalison.mu4e-sync.plist @@ -6,13 +6,15 @@ org.imalison.mu4e-sync ProgramArguments - ~/.lib/mu4e_sync.sh + zsh + -c + /Users/imalison/.lib/mu4e_sync.sh StartInterval - 30 + 10 StandardOutPath /tmp/org.imalison.mu4e-sync.out StandardErrorPath - /tmp/org.imalison.mu4e-sync.error + /tsmp/org.imalison.mu4e-sync.error