-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pomo stop
#28
Comments
Yeah, we need 'pomo stop'. Now I use this script to kill the running pomo. kill -9 $(ps aux | awk '/bin\/pomo/ {print $2}') 2> /dev/null
sed 's/running: true/running: false/g' ~/.pomo > ~/.pomo_temp
mv ~/.pomo_temp ~/.pomo
echo '#[default]#[fg=green]00:00#[default]' > ~/.pomo_stat |
Good point on reseting I'd like to write a pid file on fork and use that to kill the process, I just haven't had time to code it up. A |
With |
+1 for stop or pause functionality |
Unless there are any objections, I am going to make pomo run exclusively as a background process and eliminate |
Well, yes I am using it ... on Windows, gasp, as Ruby lacks native fork support there and running in foreground is a nice workaround. |
Stopping a task should include:
false
~/.pomo_stat
to#[default]#[fg=green]00:00#[default]
Possible option for maintaining processes: https://github.com/rjackson/singleton_process
The text was updated successfully, but these errors were encountered: