diff options
author | Soispha <soispha@vhack.eu> | 2023-10-20 23:09:50 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-20 23:09:50 +0200 |
commit | e5a5ed117b3fd09682fe343c6ce82f8cbd502e74 (patch) | |
tree | 7215316196287f7a144d409c2b2eb6f235d774e8 | |
parent | fix(hm/pkgs/scr/neorg): Remove 'f' from set options (diff) | |
download | nixos-config-e5a5ed117b3fd09682fe343c6ce82f8cbd502e74.tar.gz nixos-config-e5a5ed117b3fd09682fe343c6ce82f8cbd502e74.zip |
fix(hm/pkgs/scr/neorg): Correctly replace and add project_path
Diffstat (limited to '')
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/neorg | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg b/hm/soispha/pkgs/scripts/wrappers/neorg index 71b82a49..f34b20b8 100755 --- a/hm/soispha/pkgs/scripts/wrappers/neorg +++ b/hm/soispha/pkgs/scripts/wrappers/neorg @@ -148,7 +148,8 @@ ADD_open_taskwarrior_project_file() { nvim "$task_project_file"; git add "$task_project_file"; - base_task_project_file_path="$(awk "{ gsub(\"$git_dir/\", \"\") }" "$(ptmp "$task_project_file")")" + base_task_project_file_path="$(awk "{ gsub(\"$git_dir/\", \"\", \$0); print }" "$(ptmp "$task_project_file")")" + git add $task_project_file; git commit --verbose --message="chore($(dirname "$base_task_project_file_path")): Update" } # }}} |