mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 07:57:22 +08:00
18 lines
643 B
Markdown
18 lines
643 B
Markdown
# zoxide plugin
|
|
|
|
Initializes [zoxide](https://github.com/ajeetdsouza/zoxide), a smarter cd
|
|
command for your terminal.
|
|
|
|
![Tutorial](https://raw.githubusercontent.com/ajeetdsouza/zoxide/97dc08347d9dbf5b5a4516b79e0ac27366b962ce/contrib/tutorial.webp)
|
|
|
|
To use it, add `zoxide` to the plugins array in your `.zshrc` file:
|
|
|
|
```zsh
|
|
plugins=(... zoxide)
|
|
```
|
|
## Overriding `z` Alias
|
|
|
|
You can set the `ZOXIDE_CMD_OVERRIDE`, which will be passed to the `--cmd` flag of `zoxide init`. This allows you to set your `z` command to a default of `cd`.
|
|
|
|
**Note:** you have to [install zoxide](https://github.com/ajeetdsouza/zoxide#step-1-install-zoxide) first.
|