/tw-install

Automatically installs Taskwarrior, Taskserver (TODO: and Timewarrior). This project aims to support automated installation of all Taskwarrior hook scripts, configuration flavours etc. with a single command.

Primary LanguageShellGNU Affero General Public License v3.0AGPL-3.0

Taskwarrior Installer

Build Status

This installs taskwarrior and taskwarrior server for you on an Ubuntu device (or on Windows with the WSL app, I did not try Mac yet.) with 2 simple commands. In my experience Taskwarrior (and Timewarrior) are increadibly powerfull tools to monitor and improve your effectiveness in many aspects of life, yet I found setting it up a bit challenging, so I automated the procedure.

How to help

  • Contribute to the self-hosted GitLab CI on it over here which I would like to run on this repo.
  • After CI works, I would like to refactor this repo using this template.

How to use (for users)

Run the Taskwarrior installer from the root of this repository with:

cd ~/.task
git clone git@github.com:dehidehidehi/tw-install.git install
cd install
chmod +x tw-install.sh
./tw-install.sh

That's it, you can now add tasks with: task add make pancakes and sync it with your own taskwarrior server with: task sync :)

Uninstall taskwarrior and taskserver it with:

chmod +x tw-uninstall.sh
./tw-uninstall.sh

(Currently) you have to reboot the system before you install it again using the tw-install.sh file.

Docker (not working)

Build

docker build -t tw-install .

Run container

source ./tw-install-for-docker.sh

How to use (for developers)

First install the required submodules with:

cd ~/.task
git clone git@github.com:HiveMinds-EU/tw-install.git install
cd install
rm -r test/libs/*
chmod +x install-bats-libs.sh
./install-bats-libs.sh

Next, run the unit tests with:

chmod +x test.sh
./test.sh

Note: Put your unit test files (with extention .bats) in folder: /test/