We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z path/to/file
path/to
I enjoyed this behavior with zsh, not exactly sure what the exact config or plugins were but when one did
cd path/to/file
the directory was changed to path/to
Useful with other autocomplete/search features where you look for a file and need to cd to the directory that contains the file fast.
The text was updated successfully, but these errors were encountered:
If you need custom functionality, you can wrap the __zoxide_z function to do what you want.
__zoxide_z
For example:
eval "$(zoxide init zsh --no-cmd)" # initialize without `z` command function z() { if test -f "$1"; then cd "$(dirname "$1")" else __zoxide_z "$@" fi }
Sorry, something went wrong.
No branches or pull requests
I enjoyed this behavior with zsh, not exactly sure what the exact config or plugins were but when one did
the directory was changed to
path/to
Useful with other autocomplete/search features where you look for a file and need to cd to the directory that contains the file fast.
The text was updated successfully, but these errors were encountered: