From 5873a8416d7933045d4ccd15c3f28a967150289c Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Sun, 2 Jun 2024 18:35:30 +0200 Subject: [PATCH] use `plugin add` instead of `nu -c "register ..."` (#69) as per title --- 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!" }