about summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
Diffstat (limited to 'hm')
-rwxr-xr-xhm/soispha/pkgs/scripts/wrappers/neorg2
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!"