-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fixes crontab throwing errors when tmux isn't running #1
base: master
Are you sure you want to change the base?
Conversation
And formatted code a little bit. Reason for this check is because the cron job runs even if tmux isn't open and causes error messages because there isn't any active tmux session
Edit: My prettier plugin also formatted the lines so that is why the lines changed is high |
Hey thanks for the heads up. As I understood, the capture should be about something else. crontab -e And there append this */1 * * * * /Users/thepante/.tmux/plugins/tmux-git-autofetch/git-autofetch.tmux --scan-paths > /dev/null 2>&1 That should suppress that noise under mail. I'll better check standards about how to handle cronjobs and update it 😅 Will check out your PR and merge it! Thanks for it. |
Hi, sorry for the late response. Thank you for the temp fix, I won't apply it for myself just yet, il try and see if I can help out and adjust the cron job 😁 |
Don't merge yet, I messed up my gpg key and also I haven't tested it yet. |
Instead of checking in each function, it will check before the switch statement, less lines of code = efficient code =) Signed-off-by: Amirreza Ghiassian <amir@Amirs-Macbook.local>
I may be bad at bash programming
Should be fixed now 👍🏽 |
Previously, when the plugin was installed, changing directories or every couple minutes it would throw an error because there wasn't any tmux session. So I did this:
If you run
echo $TERM_PROGRAM
in tmux, the value will betmux
So first commit I did was to test this fix to see if it works on one function, so then I implemented it in a function and put them for everything:
That's all! Tested on my Mac-book M1 Pro, running Mac OS V15.0 beta