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

templates/nushell.txt: Alias name not supported #648

Closed
brian6932 opened this issue Nov 27, 2023 · 3 comments
Closed

templates/nushell.txt: Alias name not supported #648

brian6932 opened this issue Nov 27, 2023 · 3 comments

Comments

@brian6932
Copy link

brian6932 commented Nov 27, 2023

Error: nu::parser::variable_not_valid

  × Alias name not supported.
    ╭─[/root/.zoxide.nu:69:1]
 6970 │ alias {{cmd}} = __zoxide_z
    ·       ───┬───
    ·          ╰── alias name can't be a number, a filesize, or contain a hash # or caret ^
 71 │ alias {{cmd}}i = __zoxide_zi
    ╰────

~> nu -v
0.87.1
@ajeetdsouza
Copy link
Owner

Have you followed the installation instructions listed on the README?

@brian6932
Copy link
Author

I have, I fixed this issue by just changing the lines to

alias z = __zoxide_z
alias zi = __zoxide_zi

I had to use the file from the repo, instead of using the installation directions, as the installation directions result in #630 and I don't want to see that everytime I launch my shell :)

@ajeetdsouza
Copy link
Owner

The file in the repo is a template - {{cmd}} would be replaced with z when running zoxide init.

I'm cutting a release of zoxide, the problem should be fixed now.

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

No branches or pull requests

2 participants