Skip to content

Commit

Permalink
fp9
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Jun 27, 2024
1 parent a9a3d8d commit ba764dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ def main [
ls $nuDir
| where name =~ nu_plugin
| each {|plugin|
print $'Registering ($plugin.name)'
let p = $plugin.name | str replace -a \ /
print $'Registering ($p)'
if $useRegister {
nu -c ("'" + $'"register ($plugin.name)"' + "'")
nu -c ("'" + $'"register ($p)"' + "'")
} else {
nu -c ("'" + $'"plugin add ($plugin.name)"' + "'")
nu -c ("'" + $'"plugin add ($p)"' + "'")
}
}
print $'(char nl)Plugins registered successfully for Nu ($version).'
Expand Down

0 comments on commit ba764dd

Please sign in to comment.