Skip to content

Commit

Permalink
use plugin add instead of nu -c "register ..." (#69)
Browse files Browse the repository at this point in the history
as per title
  • Loading branch information
amtoine authored Jun 2, 2024
1 parent b92c4c0 commit 5873a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
}

0 comments on commit 5873a84

Please sign in to comment.