-
Out of curiosity, is anyone using both ajeetdsouza/zoxide and
I know I could use I don't have such issue if using zdharma-continuum/zinit because it doesn't alias
declare -A ZI
ZI[HOME_DIR]="${ZDOTDIR}/config/plugins/.zi"
ZI[BIN_DIR]="${ZI[HOME_DIR]}/bin"
[[ -f "${ZI[BIN_DIR]}/zi.zsh" ]] && source "${ZI[BIN_DIR]}/zi.zsh" \
|| git clone https://github.com/z-shell/zi "${ZI[BIN_DIR]}"
autoload -Uz _zi
(( ${+_comps} )) && _comps[zi]=_zi
zinit wait lucid for \
atinit"ZI[COMPINIT_OPTS]=-C; zicompinit; zicdreplay" \
z-shell/F-Sy-H \
blockf \
zsh-users/zsh-completions \
atload"!_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions
eval "$(zoxide init zsh)" I also tried to use alias \
z="__zoxide_z" \
zi="__zoxide_zi" Sourcing zoxide before zi without any alias modification doesn't help much either. In this case, it's the opposite, I'm kind of lost. Thanks in advance for any suggestion! 🥸 |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 19 replies
-
FYI, after updating to 843cdd3, I'm now getting
Edit: another workaround is to use |
Beta Was this translation helpful? Give feedback.
-
On the branch: next you can alias any command to: ❮▼❯. to be the default. You pointed out a big issue on how ZI could be compromised with a simple function conflict. Thank you. |
Beta Was this translation helpful? Give feedback.
-
I also reviewed zoxide as mentioned previously. Great project I am surprised I missed it. It's very simple:
And this is basically all. The effect is not only for directories and also for every other input stored in history based on rules set for writing the history, which gets suggested. Based on my activity the tasks performed generally change daily, for this reason, history is refreshed accordingly and specifically excluded for a longer-term. Additionally, I use z-shell/H-S-MW to find everything I pasted or that is long and complex. The outcome of all this is that it takes 2-4 and rarely more than 4 and almost knows the difference between how complex and long command was. I chose random tasks and checked, how many key-press it will take, and compared my method and oxide: zoxide: 324 It may sound funny, but all it takes is just to find the meaning or required settings and almost all can be achieved with native Zsh. I really recommend trying it. We - humans are very predictable :) |
Beta Was this translation helpful? Give feedback.
-
Updating Zoxide to 0.9.4 broke
Zoxide is sourced after Now, any With Zoxide <=0.9.3: % which zinit
zinit: aliased to ❮▼❯
% alias zinit
zinit=❮▼❯
% which z
z: aliased to __zoxide_z
% which zi
zi: aliased to __zoxide_zi
% zinit list
author/plugin1
author/plugin2
[...] With Zoxide 0.9.4: % which zinit
zinit: aliased to ❮▼❯
% alias zinit
zinit=❮▼❯
% which z
z () {
__zoxide_z "$@"
}
% which zi
zi () {
__zoxide_zi "$@"
}
% zinit
# actually runs `zi` i.e. `__zoxide_zi "$@"`
% zinit list
# actually runs `zi list`, i.e. changes directory to the best "list" match in my Zoxide database. Of course, Any idea? |
Beta Was this translation helpful? Give feedback.
On the branch: next you can alias any command to: ❮▼❯. to be the default.
You pointed out a big issue on how ZI could be compromised with a simple function conflict.
Thank you.