Replies: 2 comments
-
If there is only 1 argument (like Lines 56 to 67 in 94d3cba How are you initializing zoxide? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have the same issue, my setup is alias cd='z'
eval "$(zoxide init zsh)" in my .zshrc example of problem that I have: ~/pathA $ ls
folderA
folderB
~/pathA $ cd folderA
~/pathB/folderA $ the expected / wanted behavior on my part is for it to go to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to get used to zoxide and really like it. The one major thing that I have to say is VERY annoying is that it alway defaults to the db entries first and ignores the current directory.
The only way I can force it to cd to a current directory subdirectory is to specifiy ./
For example,
I have multiple places on my filesystem that have 'aprsd' in the name. It's an app I developing and an app that I deploy in docker.
I have:
You get the idea.
if I type 'z aprsd' it typically goes to ~/devel/aprsd, which is great
but once inside of ~/devel/aprsd I want to cd again to ./aprsd
The problem is, that I have an alias of cd=z
and I Want to cd into ./aprsd, but will type
cd aprsd, because aprsd is in the current directory. it ends up doing nothing, or if my z db has another location as visited more often, it will send me back there...such as /docker/aprsd-wb4for-11, when all I wanted to do is go into the aprsd directory from the current location I was in. z basically ignores the current directory looking for the right place to change to unless I force it to ./aprsd.
It would be nice if there was an option that I could use (and place in my alias) that defaults to looking in the current directory first for the location to change to, and if it's not there, then fallback to the database location.
Beta Was this translation helpful? Give feedback.
All reactions