chezmoi init
This commit is contained in:
commit
530d6d7195
1176 changed files with 111325 additions and 0 deletions
17
dot_oh-my-zsh/plugins/zoxide/README.md
Normal file
17
dot_oh-my-zsh/plugins/zoxide/README.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# zoxide plugin
|
||||
|
||||
Initializes [zoxide](https://github.com/ajeetdsouza/zoxide), a smarter cd
|
||||
command for your terminal.
|
||||
|
||||

|
||||
|
||||
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.
|
5
dot_oh-my-zsh/plugins/zoxide/zoxide.plugin.zsh
Normal file
5
dot_oh-my-zsh/plugins/zoxide/zoxide.plugin.zsh
Normal file
|
@ -0,0 +1,5 @@
|
|||
if (( $+commands[zoxide] )); then
|
||||
eval "$(zoxide init --cmd ${ZOXIDE_CMD_OVERRIDE:-z} zsh)"
|
||||
else
|
||||
echo '[oh-my-zsh] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide'
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue