From 7e643ae15651eeb9fc6aa531d798a40a692c3f1d Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 25 Oct 2023 15:31:16 +0200 Subject: fix(hm/pkgs/scr/neorg): Use path to file, to circumvent escaping --- hm/soispha/pkgs/scripts.nix | 2 +- hm/soispha/pkgs/scripts/wrappers/neorg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'hm') diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix index d8f8052f..5fa88b91 100644 --- a/hm/soispha/pkgs/scripts.nix +++ b/hm/soispha/pkgs/scripts.nix @@ -65,7 +65,7 @@ ID_GENERATION_FUNCTION = # This is here, because escaping the whole function, to use it in the shell script # directly just isn't possible - lib.strings.escapeShellArg + pkgs.writeText "ID_GENERATION_FUNCTION" /* bash */ diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg b/hm/soispha/pkgs/scripts/wrappers/neorg index f4e46e4f..f60fea95 100755 --- a/hm/soispha/pkgs/scripts/wrappers/neorg +++ b/hm/soispha/pkgs/scripts/wrappers/neorg @@ -42,7 +42,7 @@ COMMANDS: add Allows you to quickly add projects ARGUMENTS: - ID | *([0-9]) := %ID_GENERATION_FUNCTION + ID | *([0-9]) := $(cat %ID_GENERATION_FUNCTION) The function displays all possible IDs of the eligable tasks. WS := %ALL_WORKSPACES -- cgit 1.4.1