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

nushell(0.99.1) can't load zoxide #934

Closed
seocamo opened this issue Nov 10, 2024 · 2 comments
Closed

nushell(0.99.1) can't load zoxide #934

seocamo opened this issue Nov 10, 2024 · 2 comments

Comments

@seocamo
Copy link

seocamo commented Nov 10, 2024

i am trying out nushell on arch linux(btw), and the file zoxide make with the init command start with a if and that is not allow
only def, const, extern, alias, use, module, export or export-env is allow

so i think it need to wrap in a module or something.

Error: nu::parser::expected_keyword

  × Expected keyword.
    ╭─[~/.cache/zoxide/zoxide.nu:9:1]
  8 │ # Initialize hook to add new entries to the database.
  9 │ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
    · ─┬
    ·  ╰── expected def, const, extern, alias, use, module, export or export-env keyword
 10 │   $env.__zoxide_hooked = true
    ╰────
@ajeetdsouza
Copy link
Owner

Have you followed the initialization instructions in the README exactly, or have you changed something there?

@ajeetdsouza ajeetdsouza added the waiting-for-response Waiting for a response from the issue author. label Nov 11, 2024
@seocamo
Copy link
Author

seocamo commented Nov 12, 2024

ohh i try to delete what i added and retype it.
and i typed use and not source sorry it is my bad

@seocamo seocamo closed this as completed Nov 12, 2024
@github-actions github-actions bot removed the waiting-for-response Waiting for a response from the issue author. label Nov 12, 2024
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