connermcd / gtd Goto Github PK
View Code? Open in Web Editor NEWA simple shell script for effective time management.
A simple shell script for effective time management.
I may be going crazy, and I'm not even sure I can reliably reproduce the issue, but when I test your latest changes to tot_on_exit
branch, every so often the countdown timer skips a second; it jumps, for example, from 00:00:50
to 00:00:48
, but sometimes it skips other seconds too. Does it have something to do with having to use eval
on the $now
variable?
I also left some other comments on your commit to the effect that printf
needs to be preserved for the terminal tab title printouts.
So I use polybar which allows bash script outputs to be displayed in a status bar, so just using cat to display the contents of the tmp file would be extremely useful, but I don't necessarily want the tmux functionality.
If you don't have tmux running when you specify the -t flag, it prints an error every second to standard out. This makes the output of the script pretty ugly.
I'd like to add a -T flag for the ability to output to a tmp file with no tmux functionality.
I noticed this project is pretty inactive so just let me know if you're still merging PR's thanks!
Because I don't have tmux installed, I get this error every time I interrupt the script:
line 94: tmux: command not found
I've tried various ways to redirect the output within the vsleep()
function, and even tried checking for tmux installation before doing that if…then
loop, but can't seem to suppress this error. Maybe has something to do with tmux being called in a subshell?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.