Giter VIP home page Giter VIP logo

Comments (8)

andyw134 avatar andyw134 commented on June 9, 2024 1

I have zoxide init --cmd cd fish | source in my fish config at ~/.config/fish/config.fish when I launch a new terminal and run which cd I get /usr/bin/cd

If I run zoxide init --cmd cd fish | source in a terminal I get the same result.

Running alias I do get the following results
alias cd __zoxide_z
alias cdi __zoxide_zi

And when I try to use zoxide as described it does work
For example cd code will take me to ~/dev/code from the home directory

On MacOS 14.2.1, Fish v3.7.0, zoxide 0.9.4

from zoxide.

andyw134 avatar andyw134 commented on June 9, 2024 1

No issues, but I initially thought it was not working.
Was contributing my experience in case it would help others.

from zoxide.

gprst avatar gprst commented on June 9, 2024 1

Thank you, I had the exact same setup and too thought that because which cd returned /usr/bin/cd it wouldn't work. I know now that it does. Thanks for sharing 👍

from zoxide.

ajeetdsouza avatar ajeetdsouza commented on June 9, 2024

What do you mean by doesn't replace the cd command?

from zoxide.

aybarsnazlica avatar aybarsnazlica commented on June 9, 2024

I have the same problem. Adding zoxide init fish | source to the end of fish config file works fine. However, zoxide init --cmd cd fish | source doesn't add zoxide to fish.

from zoxide.

ajeetdsouza avatar ajeetdsouza commented on June 9, 2024

However, zoxide init --cmd cd fish | source doesn't add zoxide to fish.

I've still not fully understood - what do you mean by "zoxide is not added to fish"? Also, what is your fish version / zoxide version?

from zoxide.

ajeetdsouza avatar ajeetdsouza commented on June 9, 2024

@andyw134 the which command locates binaries with a given name, whereas zoxide defines cd as a function. Is there any issue you're having with the setup?

from zoxide.

ajeetdsouza avatar ajeetdsouza commented on June 9, 2024

Cool cool, closing this issue.

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.