diff options
author | Soispha <soispha@vhack.eu> | 2023-10-18 16:13:06 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-18 16:13:06 +0200 |
commit | ee2950f25f8a151b7773b15012e47ce0883c727c (patch) | |
tree | ed4c09d22b563dbb6d768d3ca7c7e56756bc0c37 /hm/soispha/pkgs/scripts/wrappers/neorg | |
parent | fix(hm/pkgs/scr/neorg): Cd with nvim to the project dir (diff) | |
download | nixos-config-ee2950f25f8a151b7773b15012e47ce0883c727c.tar.gz nixos-config-ee2950f25f8a151b7773b15012e47ce0883c727c.zip |
fix(hm/pkgs/scr/neorg): Silence 'task', when it can't find the rc element
Diffstat (limited to '')
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/neorg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg b/hm/soispha/pkgs/scripts/wrappers/neorg index 6a36a6d6..78f6f64c 100755 --- a/hm/soispha/pkgs/scripts/wrappers/neorg +++ b/hm/soispha/pkgs/scripts/wrappers/neorg @@ -39,7 +39,7 @@ open_neorg_workspace_prompt() { open_current_task_context() { current_context="$(task _get rc.context)"; if [ "$current_context" ]; then - context_path="$(task _get rc.context."$current_context".rc.neorg_path)"; + context_path="$(task _get rc.context."$current_context".rc.neorg_path 2>/dev/null)"; if ! [ "$context_path" ]; then context_path="$(grep "context.$current_context.rc.neorg_path" "%HOME_TASKRC" | awk 'BEGIN {FS="="} {print $2}')"; [ "$context_path" ] || die "All contexts should have a 'neorg_path' set!" |