Add plugin for zoxide

This commit is contained in:
Ajeet D'Souza
2021-06-14 01:30:12 +05:30
committed by Koichi Murase
parent ae432c6185
commit 6c79f70891
2 changed files with 22 additions and 0 deletions

14
plugins/zoxide/README.md Normal file
View File

@@ -0,0 +1,14 @@
# 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 `.bashrc` file:
```bash
plugins=(... zoxide)
```
**Note:** you have to [install zoxide](https://github.com/ajeetdsouza/zoxide#step-1-install-zoxide) first.

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Check if zoxide is installed
if [ -x "$(command -v zoxide)" ]; then
eval "$(zoxide init bash)"
else
echo '[oh-my-bash] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide'
fi