Skip to content

Nushell: command broot not found #983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
amk91 opened this issue Feb 26, 2025 · 1 comment
Open

Nushell: command broot not found #983

amk91 opened this issue Feb 26, 2025 · 1 comment
Labels

Comments

@amk91
Copy link

amk91 commented Feb 26, 2025

Hello everybody, I have an issue with broot on nushell for Windows (10 specifically).
I installed broot from an admin Poweshell running .\broot.exe --install and I received the following output:

Writing br shell function in C:\Users\[user]\AppData\Roaming\dystroy\broot\data\launcher\nushell\6.
Removing C:\Users\[user]\AppData\Roaming\dystroy\broot\config\launcher\nushell\br.
Creating link from C:\Users\[user]\AppData\Roaming\dystroy\broot\config\launcher\nushell\br to C:\Users\[user]\AppData\Roaming\dystroy\broot\data\launcher\nushell\6.
C:\Users\[user]\AppData\Roaming\nushell\config.nu already patched, no change made.

my config.nu file shows the following line at the end of it
use 'C:\Users\[user]\AppData\Roaming\dystroy\broot\config\launcher\nushell\br' *
but I receive the following message when I try to use broot in nushell

Error: nu::shell::external_command

  × External command failed
    ╭─[C:\Users\[user]\AppData\Roaming\dystroy\broot\data\launcher\nushell\6:95:10]
 94 │     if ($file == null) {
 95 │         ^broot --outcmd $cmd_file ...$args
    ·          ──┬──
    ·            ╰── Command `broot` not found
 96 │     } else {
    ╰────
  help: A command with that name exists in module `6`. Try importing it with `use`

Am I missing something specific?
Thanks!

@Canop Canop added the nushell label Feb 26, 2025
@basil-eldho
Copy link

Hey @amk91,
Are you able to run Broot using CMD or PowerShell? If so, follow these steps:

As mentioned in the installation document, you need to add the executable to the system path (environment variables) so that the shell can access it. If you do this, you should be able to run Broot inside Nushell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants