872 B
872 B
zoxide (z-zi)(j-ji)
https://github.com/ajeetdsouza/zoxide
Installation:
$ brew install zoxide
Ajout au shell:
# zsh
eval "$(zoxide init zsh)"
# bash
eval "$(zoxide init bash)"
Installer fzf:
$ brew install fzf
# To install useful key bindings and fuzzy completion:
$(brew --prefix)/opt/fzf/install
Configuration:
# changer les alias prédéfinis (j au lieu de z):
eval "$(zoxide init --cmd j zsh)"
Utilisation:
z foo # cd into highest ranked directory matching foo
z foo bar # cd into highest ranked directory matching foo and bar
z ~/foo # z also works like a regular cd command
z foo/ # cd into relative path
z .. # cd one level up
z - # cd into previous directory
zi foo # cd with interactive selection (using fzf)