Skip to content
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

git aliases depend on gstat, but do not mention it #973

Open
samoylovfp opened this issue Oct 17, 2024 · 1 comment · May be fixed by #974
Open

git aliases depend on gstat, but do not mention it #973

samoylovfp opened this issue Oct 17, 2024 · 1 comment · May be fixed by #974

Comments

@samoylovfp
Copy link

Steps to reproduce:

  • install nushell on a fresh Ubuntu
  • download git-aliases to nushell config dir and add use git-ailases.nu * to the config file
  • run exec nu to reload the configuration
  • run git_current_branch

What happens

Error: nu::shell::external_command

  × External command failed
   ╭─[/home/fil/.config/nushell/git-aliases.nu:2:6]
 1 │ export def git_current_branch [] {
 2 │     (gstat).branch
   ·      ──┬──
   ·        ╰── Command `gstat` not found
 3 │ }
   ╰────
  help: Did you mean `gst`?

What I expected to happen

The script to have mentioned that gstat is a dependency and where to get it.

--

Thank you for this amazing shell!

@samoylovfp samoylovfp linked a pull request Oct 17, 2024 that will close this issue
@fdncred
Copy link
Collaborator

fdncred commented Oct 17, 2024

Good catch. Didn't know of this dependency. I commented on your PR.

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

Successfully merging a pull request may close this issue.

2 participants