From 1e0a565b0aa73b3bdb68bfa10984c94f2b0c4be1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 28 Feb 2018 20:08:46 +1300 Subject: [PATCH 1/1] Initial commit --- .config/taskwarrior/.gitignore | 2 ++ .config/taskwarrior/rc | 10 ++++++++++ .crontab.d/taskwarrior | 1 + .gitignore.d/taskwarrior | 9 +++++++++ .taskrc | 1 + .var/taskwarrior/.gitignore | 1 + .var/taskwarrior/hooks | 1 + .zsh/zshrc/parts.d/50-taskwarrior | 22 ++++++++++++++++++++++ 8 files changed, 47 insertions(+) create mode 100644 .config/taskwarrior/.gitignore create mode 100644 .config/taskwarrior/rc create mode 100644 .crontab.d/taskwarrior create mode 100644 .gitignore.d/taskwarrior create mode 120000 .taskrc create mode 100644 .var/taskwarrior/.gitignore create mode 120000 .var/taskwarrior/hooks create mode 100644 .zsh/zshrc/parts.d/50-taskwarrior diff --git a/.config/taskwarrior/.gitignore b/.config/taskwarrior/.gitignore new file mode 100644 index 0000000..645470a --- /dev/null +++ b/.config/taskwarrior/.gitignore @@ -0,0 +1,2 @@ +- /*.pem +- /taskd-credentials.rc diff --git a/.config/taskwarrior/rc b/.config/taskwarrior/rc new file mode 100644 index 0000000..d167198 --- /dev/null +++ b/.config/taskwarrior/rc @@ -0,0 +1,10 @@ +include /usr/share/taskwarrior/no-color.theme +data.location=~/.var/taskwarrior + +nag= +recurrence.indicator=⟳ + +include /usr/share/taskwarrior/holidays.de-DE.rc +include /usr/share/taskwarrior/holidays.en-NZ.rc + +include ~/.config/taskwarrior/taskd-credentials.rc diff --git a/.crontab.d/taskwarrior b/.crontab.d/taskwarrior new file mode 100644 index 0000000..b86493b --- /dev/null +++ b/.crontab.d/taskwarrior @@ -0,0 +1 @@ +*/30 * * * * task sync >/dev/null 2>&1 diff --git a/.gitignore.d/taskwarrior b/.gitignore.d/taskwarrior new file mode 100644 index 0000000..9e0a8b6 --- /dev/null +++ b/.gitignore.d/taskwarrior @@ -0,0 +1,9 @@ +* +!/.config/taskwarrior/.gitignore +!/.config/taskwarrior/rc +!/.crontab.d/taskwarrior +!/.gitignore.d/taskwarrior +!/.taskrc +!/.var/taskwarrior/.gitignore +!/.var/taskwarrior/hooks +!/.zsh/zshrc/parts.d/50-taskwarrior diff --git a/.taskrc b/.taskrc new file mode 120000 index 0000000..3113449 --- /dev/null +++ b/.taskrc @@ -0,0 +1 @@ +.config/taskwarrior/rc \ No newline at end of file diff --git a/.var/taskwarrior/.gitignore b/.var/taskwarrior/.gitignore new file mode 100644 index 0000000..216f0fe --- /dev/null +++ b/.var/taskwarrior/.gitignore @@ -0,0 +1 @@ +- /*.data diff --git a/.var/taskwarrior/hooks b/.var/taskwarrior/hooks new file mode 120000 index 0000000..729b1ca --- /dev/null +++ b/.var/taskwarrior/hooks @@ -0,0 +1 @@ +../../.config/taskwarrior/hooks \ No newline at end of file diff --git a/.zsh/zshrc/parts.d/50-taskwarrior b/.zsh/zshrc/parts.d/50-taskwarrior new file mode 100644 index 0000000..b35e383 --- /dev/null +++ b/.zsh/zshrc/parts.d/50-taskwarrior @@ -0,0 +1,22 @@ +# +# display ready taskwarrior tasks +# +# Copyright © 1994–2017 martin f. krafft +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: http://git.madduck.net/v/etc/zsh.git +# + +if whence task >/dev/null; then + + alias t=task + alias ta='t add' + alias tn='t next' + alias tl='t all' + alias ty='t sync' + alias td='t done' + + [[ -t 0 ]] && task 2>/dev/null || : +fi + +# vim:ft=zsh -- 2.39.5