summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/Reaktor
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-07-09 19:23:12 +0200
committerlassulus <lass@blue.r>2018-07-09 19:23:12 +0200
commit2f29f28730347c2b69d3aebc931deb36159cf1fe (patch)
tree0b910c1eb5c62d9c178fc53dbef5266062b19977 /krebs/5pkgs/simple/Reaktor
parent6308cd0d357a5d1d94592981de8960c78aebc490 (diff)
parentd1c6baf00e98a0229fc7fd96874623efc8417b05 (diff)
Merge remote-tracking branch 'prism/staging/jeschli'
Diffstat (limited to 'krebs/5pkgs/simple/Reaktor')
-rw-r--r--krebs/5pkgs/simple/Reaktor/plugins.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/krebs/5pkgs/simple/Reaktor/plugins.nix b/krebs/5pkgs/simple/Reaktor/plugins.nix
index 3730b9e66..c303f9fb3 100644
--- a/krebs/5pkgs/simple/Reaktor/plugins.nix
+++ b/krebs/5pkgs/simple/Reaktor/plugins.nix
@@ -148,9 +148,15 @@ rec {
taskwarrior = buildSimpleReaktorPlugin "task" {
pattern = "^task: (?P<args>.*)$$";
- script = pkgs.writeDash "task-wrapper" ''
- ${pkgs.taskwarrior}/bin/task "$*"
- '';
+ script = let
+ taskrc = "$HOME/.taskrc";
+ in
+ pkgs.writeDash "task-wrapper" ''
+ if [ -f ${taskrc} ] ; then
+ touch ${taskrc}
+ fi
+ ${pkgs.taskwarrior}/bin/task "$*"
+ '';
};
todo = name: {