Comments (8)
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.
No issues, but I initially thought it was not working.
Was contributing my experience in case it would help others.
from zoxide.
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.
What do you mean by doesn't replace the cd
command?
from zoxide.
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.
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.
@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.
Cool cool, closing this issue.
from zoxide.
Related Issues (20)
- Add support for kornshell HOT 7
- Conflict between zoxide, zsh-autocomplete, and fzf results in erroneous behavior HOT 2
- Support the `--` command-line argument HOT 4
- Interactive mode (space + tab) doesn't appear to be working on macOS HOT 5
- Interactive expansion doesn't work as expected when it matches a single entry then echos command 3 times HOT 6
- How can I change the shortcuts in zi?
- zoxide: no match found on startup HOT 10
- Possible to get a list of previous dirs by time?
- feasibility integrate with vscode cli(`code`) HOT 3
- unknown option: --keep-right zoxide: fzf returned an error HOT 1
- Unable to initialize zoxide in my zsh HOT 2
- Zoxide with cd alias breaks fish - 'prevd-or-backward-word' & 'nextd-or-forward-word' HOT 2
- eval not found HOT 5
- Unable to install zoxide in arch linux HOT 2
- Arch 'MANJARO' with ZSH and Powerlevel10k PROBLEMS HOT 1
- Help with excluding dirs HOT 2
- z "" should act as z with no arguments (go to home directory) HOT 3
- Feature request: "z . some keywords" to find matches in current directory HOT 2
- New Command Idea: Env
- Zoxide "zi" hangs when mount point is in list (/mnt) that's unavailable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zoxide.