forked from colonelpanic/dotfiles
Fix mu4e-sync and reload_all_user_agents
This commit is contained in:
parent
af941776f4
commit
bd969d9d45
@ -1,3 +1,2 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
refresh_config
|
offlineimap
|
||||||
mu4e_sync_command
|
|
||||||
|
@ -287,7 +287,7 @@ function track_modified {
|
|||||||
echo "Press any key to execute find command"
|
echo "Press any key to execute find command"
|
||||||
read -r key
|
read -r key
|
||||||
echo "Finding..."
|
echo "Finding..."
|
||||||
find $1 -newer $timestamp_file
|
find $1 -cnewer "$timestamp_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
function python_module_path {
|
function python_module_path {
|
||||||
|
@ -43,7 +43,7 @@ function reload_user_agent {
|
|||||||
function reload_all_user_agents {
|
function reload_all_user_agents {
|
||||||
sudo -v
|
sudo -v
|
||||||
for agent in $(find -f ~/Library/LaunchAgents); do
|
for agent in $(find -f ~/Library/LaunchAgents); do
|
||||||
reload_root_agent $agent
|
reload_user_agent $agent
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,13 +6,15 @@
|
|||||||
<string>org.imalison.mu4e-sync</string>
|
<string>org.imalison.mu4e-sync</string>
|
||||||
<key>ProgramArguments</key>
|
<key>ProgramArguments</key>
|
||||||
<array>
|
<array>
|
||||||
<string>~/.lib/mu4e_sync.sh</string>
|
<string>zsh</string>
|
||||||
|
<string>-c</string>
|
||||||
|
<string>/Users/imalison/.lib/mu4e_sync.sh</string>
|
||||||
</array>
|
</array>
|
||||||
<key>StartInterval</key>
|
<key>StartInterval</key>
|
||||||
<integer>30</integer>
|
<integer>10</integer>
|
||||||
<key>StandardOutPath</key>
|
<key>StandardOutPath</key>
|
||||||
<string>/tmp/org.imalison.mu4e-sync.out</string>
|
<string>/tmp/org.imalison.mu4e-sync.out</string>
|
||||||
<key>StandardErrorPath</key>
|
<key>StandardErrorPath</key>
|
||||||
<string>/tmp/org.imalison.mu4e-sync.error</string>
|
<string>/tsmp/org.imalison.mu4e-sync.error</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
Loading…
Reference in New Issue
Block a user