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

fix(todo.sh): move to .todo subdirectory

This commit is contained in:
Kierán Meinhardt
2019-12-27 19:28:29 +01:00
parent 3fb1941e59
commit e2e816394f
5 changed files with 1 additions and 4 deletions

3
.gitignore vendored
View File

@@ -1,5 +1,2 @@
secrets.nix secrets.nix
result result
todo.txt.bak
done.txt
report.txt

0
.todo/done.txt Normal file
View File

0
.todo/report.txt Normal file
View File

View File

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