A way to avoid zi alias? #312
-
|
I have starting using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
Ah thanks for reporting this edge case, but you can (pretty sure 😆) overcome this in a few ways. However, to gain a bit more context, can you share how you currently load Zoxide? I don't use it personally. Here are three possible solutions that I'd suggest. 1.Use 2.When calling --cmdChanges the prefix of the E.g., --cmd jwould change the commands to ( --cmd cdwould replace the So you'd just need to choose different shortcut. 3.I haven't tested this, but 99% sure adding the following ice would work given how zinit loads plugins. atload'unalias zi'And if the doesn’t work, try atinit'unalias zi'Please let me know if you need anything else (i.e., clarification, solutions don't work, etc.). :^) |
Beta Was this translation helpful? Give feedback.
-
|
For me |
Beta Was this translation helpful? Give feedback.
-
|
For the record, I use source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
# Remove zi alias set by zinit (conflicts with zoxide's zi or other tools)
(( ${+aliases[zi]} )) && unalias zi
# The ((...)) is a condition that checks if the zi alias is there; if it is removed,
# the bare `unalias zi` could return an error like "alias zi not found"
# other configs and loadings
eval "$(zoxide init zsh)" |
Beta Was this translation helpful? Give feedback.
Ah thanks for reporting this edge case, but you can (pretty sure 😆) overcome this in a few ways.
However, to gain a bit more context, can you share how you currently load Zoxide? I don't use it personally.
Here are three possible solutions that I'd suggest.
1.
Use
zinstead ofzi, no changes needed to how you load Zoxide.2.
When calling
zoxide init, the following flag is available:Changes the prefix of the
zandzicommands.E.g.,
would change the commands to (
j,ji)--cmd cdwould replace the
cdcommandSo you'd just need to choose different shortcut.
3.
I haven't tested this, but 99% sure adding the following ice would work given how zinit loads plugins.
atload'unalias zi'