Make sure the shell is executable
chown <userid>:<userid> tmux-resurrect-prune.sh
chmod 4750 tmux-resurrect-prune.sh
to make sure this is runnable and that you alone can run it under your user.
Load the .plist file, ironically you have to run this outside of tmux or you will get Operation not permitted error: http://superuser.com/questions/879640/error-while-trying-to-start-postgres-installed-via-homebrew-operation-not-permi/898585 launchtl load tmux-resurrect-prune.plist http://stackoverflow.com/questions/4485972/library-launchagents-plist-runs-manually-but-not-automatically I was looking for a way to do this run at machine wake: