💾 Archived View for envs.net › ~coleman › journal › 2020-06-24.gmi captured on 2024-07-09 at 00:58:09. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

-=-=-=-=-=-=-

dstask: A Taskwarrior alternative

I am using a command line task manager called dstask. It can import tasks from Taskwarrior, but uses a git repository for sync. I like this approach, because I found the Taskwarrior server implementation very difficult to set up.

It does have fewer features than the Taskwarrior ecosystem, though. But I've hacked together a little dashboard script for my terminal. It uses `entr` to continuously refresh every time a change in the dstask repo is detected.

tasklist () {
	while true
	do
		fd -g '*.yml' ~/.dstask | entr -cd dstask
		code=$? 
		if [[ $code == 130 ]] || [[ $code == 143 ]]
		then
			return 1
		fi
		sleep 1
	done
}

It's just a little function. The check for exit codes are, 130 for SIGINT and 143 for SIGTERM. Otherwise we keep on looping (a file being removed from one of the dirs under ~/.dstask results in a non-zero exit code).

And of course we're using fd-find, because it's way easier than old school find :)

Command line fun!

dstask on Github (HTTPS)

Published 2020-06-24