diff options
Diffstat (limited to 'oh-my-zsh/plugins/zoxide')
-rw-r--r-- | oh-my-zsh/plugins/zoxide/README.md | 14 | ||||
-rw-r--r-- | oh-my-zsh/plugins/zoxide/zoxide.plugin.zsh | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/oh-my-zsh/plugins/zoxide/README.md b/oh-my-zsh/plugins/zoxide/README.md new file mode 100644 index 0000000..f326eff --- /dev/null +++ b/oh-my-zsh/plugins/zoxide/README.md @@ -0,0 +1,14 @@ +# 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) +``` + +**Note:** you have to [install zoxide](https://github.com/ajeetdsouza/zoxide#step-1-install-zoxide) first. diff --git a/oh-my-zsh/plugins/zoxide/zoxide.plugin.zsh b/oh-my-zsh/plugins/zoxide/zoxide.plugin.zsh new file mode 100644 index 0000000..e5658b8 --- /dev/null +++ b/oh-my-zsh/plugins/zoxide/zoxide.plugin.zsh @@ -0,0 +1,5 @@ +if (( $+commands[zoxide] )); then + eval "$(zoxide init zsh)" +else + echo '[oh-my-zsh] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide' +fi |