1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(todo.sh): use project local todo.txt file

This commit is contained in:
Kierán Meinhardt
2019-08-26 16:51:58 +02:00
parent 5478672eaa
commit a1bfd2a9ec
2 changed files with 11 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{ pkgs, ... }:
let todo-txt-config = pkgs.writeText "todo.cfg" ''
export TODO_DIR="$HOME/cloud/Dropbox/todo"
export TODO_DIR="$(${pkgs.git}/bin/git rev-parse --show-toplevel || echo "$HOME/cloud/Dropbox/todo")"
export TODO_FILE="$TODO_DIR/todo.txt"
export DONE_FILE="$TODO_DIR/done.txt"