14-11-2023
This commit is contained in:
52
docs/Linux/zoxide.md
Normal file
52
docs/Linux/zoxide.md
Normal file
@@ -0,0 +1,52 @@
|
||||
# zoxide (z-zi)(j-ji)
|
||||
|
||||
https://github.com/ajeetdsouza/zoxide
|
||||
|
||||
|
||||
|
||||
##### Installation:
|
||||
|
||||
```bash
|
||||
$ brew install zoxide
|
||||
```
|
||||
|
||||
##### Ajout au shell:
|
||||
|
||||
```bash
|
||||
# zsh
|
||||
eval "$(zoxide init zsh)"
|
||||
|
||||
# bash
|
||||
eval "$(zoxide init bash)"
|
||||
```
|
||||
|
||||
##### Installer fzf:
|
||||
|
||||
```bash
|
||||
$ brew install fzf
|
||||
# To install useful key bindings and fuzzy completion:
|
||||
$(brew --prefix)/opt/fzf/install
|
||||
```
|
||||
|
||||
##### Configuration:
|
||||
|
||||
```bash
|
||||
# changer les alias prédéfinis (j au lieu de z):
|
||||
eval "$(zoxide init --cmd j zsh)"
|
||||
|
||||
```
|
||||
|
||||
##### Utilisation:
|
||||
|
||||
```bash
|
||||
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)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user