From 2180b8062e58841c61d3cf7e9748da17e87d6370 Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Fri, 3 May 2024 15:34:59 +0200 Subject: [PATCH] Fix loading of nu project commands --- content/config/helix/config.toml | 2 +- content/config/nushell/config.nu.tmpl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/config/helix/config.toml b/content/config/helix/config.toml index 70f8428..ae73d47 100644 --- a/content/config/helix/config.toml +++ b/content/config/helix/config.toml @@ -2,7 +2,7 @@ theme = "dracula-purple" [editor] rulers = [120] -shell = ["nu", "-c"] +shell = ["nu", "--stdin", "-c"] true-color = true cursorline = true color-modes = true diff --git a/content/config/nushell/config.nu.tmpl b/content/config/nushell/config.nu.tmpl index fcc8982..1aaa6ec 100644 --- a/content/config/nushell/config.nu.tmpl +++ b/content/config/nushell/config.nu.tmpl @@ -195,11 +195,11 @@ $env.config = { direnv export json | from json | default {} | load-env {{/if-installed}} }, { - condition: {|before, after| ("project.nu" in (overlay list)) and ($before == null or ($after not-in $before)) } - code: "overlay hide project.nu --keep-env [ PWD ]" + condition: {|before, after| ("nuenv.nu" in (overlay list)) and ($before == null or ($before not-in $after)) } + code: "overlay hide nuenv.nu --keep-env [ PWD ]" }, { - condition: {|before, after| ("./project.nu" | path exists) and ($before == null or ($after not-in $before)) }, - code: "overlay use ./project.nu as project.nu" + condition: {|before, after| "./nuenv.nu" | path exists }, + code: "overlay use ./nuenv.nu as nuenv.nu" }] } }