Can't find installed plugin
Closed this issue · 1 comments
First off, I'm new to Nushell, so there might something stupid I'm doing.
I installed packer.nu following the readme and added this plugin just to check that I can install packages. However, the command that's supposed to be installed with that plugin is not available.
Hi,
that plugin uses nushells plugin system, which is completely separate from packer.nu's packages.
To register a plugin you have to download the compiled version (or in this case compile it yourself) (i would recommend putting all plugins into a dedicated directory instead of leaving them in Downloads) and then register it via register /absolute/path/to/plugin
(which only sometimes works for me) and finally restart nushell.
I thought about adding support for managing plugins via packer in the past, but decided to wait for version 2 and now decided to drop version 2 in favor of the official packagemanager (which is in its very early stages)
The reason why both packer and plugins exist is their different use cases:
Packer: runs directly inside nushell and can offer
- tab-completion
- simple custom commands
- aliases
- shell prompts
plugins: external programs with integration for nushells datatypes:
- potentially better performance (especially since it can be written in rust, etc instead of nu-script)
- can read and write nushell data
- can't offer tab-completion, aliases, themes, shell prompts, etc (or at least not properly)
You can find a list of (some) packer packages in the wiki
It might be a good idea for me to add an error-message for when a package is not recognized as one.