Giter VIP home page Giter VIP logo

Comments (11)

st-clair-clarke avatar st-clair-clarke commented on June 2, 2024 13

I am using the correct one. With the help of the nushell guys at discord it was solved as shown below:

zoxide init nushell | str replace --all "-- $rest" "-- ...$rest" | str replace --all "def-env" "def --env" | save -f ~/.zoxide.nu

Note second replacement of the deprecated code. Thank you.

from zoxide.

binhtran432k avatar binhtran432k commented on June 2, 2024 2

I found a workaround by myself.

zoxide init nushell | str replace "$env.PWD -- $rest" "$env.PWD -- ...$rest" --all | save -f ~/.zoxide.nu

from zoxide.

fnuttens avatar fnuttens commented on June 2, 2024 2

@binhtran432k your workaround doesn't cover interactive zoxide calls (zi). I suggest this one:

zoxide init nushell | str replace --all "-- $rest" "-- ...$rest" | save -f ~/.zoxide.nu

from zoxide.

CarterLi avatar CarterLi commented on June 2, 2024 1

I compiled zoxide with newest fix for Windows in case someone needs: https://github.com/CarterLi/zoxide/releases/tag/nufix2

from zoxide.

st-clair-clarke avatar st-clair-clarke commented on June 2, 2024 1

I am using zoxide v0.4.3-unknown on Linux Mint Debian Edition - none of the above suggestion works. nushell v0.89.0. I keep receiving the following error:

error: 'nushell' isn't a valid value for 'shell'
[possible values: bash, fish, posix, powershell, zsh]

USAGE:
zoxide init --cmd --hook

from zoxide.

krestomantsi avatar krestomantsi commented on June 2, 2024

any updates on this? It still doesnt work on Arch and nushell.

from zoxide.

krestomantsi avatar krestomantsi commented on June 2, 2024

doesnt work for me. Do I have to add this command on my env file?

from zoxide.

binhtran432k avatar binhtran432k commented on June 2, 2024

doesnt work for me. Do I have to add this command on my env file?

yes it is just same as the config you put in your env, the solution is just replace the deprecated code with new one before save it to ~/.zoxide.nu

from zoxide.

mati865 avatar mati865 commented on June 2, 2024

@st-clair-clarke you should update to a newer version.

from zoxide.

st-clair-clarke avatar st-clair-clarke commented on June 2, 2024

After updating I receive the same error as described above - the fix did not work.

from zoxide.

fnuttens avatar fnuttens commented on June 2, 2024

@st-clair-clarke you mean your version of zoxide still rejects nushell as a shell? Are you sure you're using zoxide 0.9.2?

from zoxide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.