zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

Update the `zoxide init nushell` script.

Open Oglo12 opened this issue 1 year ago • 6 comments

Nushell has changed some things, so this command doesn't work. It is outdated.

Oglo12 avatar Feb 15 '24 16:02 Oglo12

Have you tried installing the latest version of zoxide?

curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash

ajeetdsouza avatar Feb 15 '24 16:02 ajeetdsouza

I had a similar issue - nushell complains about def --env not being valid in the init script. However it turns out I just have an older version of nushell (0.84) and just saw that only 0.89+ is supported. Might be a good idea to check the version on startup?

There's problems with that though. Since nushell will parse the script before running it, if running the script with an older nushell version it won't be able to even run it.

disconsis avatar Feb 19 '24 02:02 disconsis

There's hacks around that, but it might (probably?) not be worth it.

disconsis avatar Feb 19 '24 02:02 disconsis

Your version of zoxide is out of date. This is fixed on v0.9.3.

ajeetdsouza avatar Feb 19 '24 02:02 ajeetdsouza

I am on 0.9.3

ketan@wsl:/tmp/foo$ zoxide --version
zoxide 0.9.3

disconsis avatar Feb 19 '24 03:02 disconsis

@disconsis have you updated to the latest version of Nushell as well? Nushell is pre-1.0, every few versions there are breaking changes, so you need to be on the latest versions of both.

ajeetdsouza avatar Feb 20 '24 10:02 ajeetdsouza

This issue has been automatically closed due to inactivity. If you feel this is still relevant, please comment here or create a fresh issue.

github-actions[bot] avatar Mar 17 '24 00:03 github-actions[bot]