From 655aba3f29cd235abb057acec56a6e5a8eb8debf Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 2 Jun 2024 18:30:12 +0200 Subject: [PATCH] use `plugin add` instead of `nu -c "register ..."` --- build.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.nu b/build.nu index 3b2973c..e15ee4b 100644 --- a/build.nu +++ b/build.nu @@ -8,7 +8,7 @@ def main [package_file: path] { let name = open ($repo_root | path join "Cargo.toml") | get package.name cargo install --path $repo_root --root $install_root - ^$nu.current-exe --commands $"register ($install_root | path join "bin" $name)" + plugin add ($install_root | path join "bin" $name) log info "do not forget to restart Nushell for the plugin to be fully available!" }