36cc94f3dcd8d6214b5a4bedf180bc723eb49a3f

Author
Ajeet D'Souza <98ajeet@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(zoxide): add new plugin for zoxide (a smarter cd CLI tool) (#9950)

Diff

 1diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
 2index 1b1340554691d2a86ee542346d8c30f90faf4e79..6c3eac6e7a54eff3172926b4bdb14b3bed20bbcb 100644
 3--- a/.github/CODEOWNERS
 4+++ b/.github/CODEOWNERS
 5@@ -7,3 +7,4 @@ plugins/gitfast/                    @felipec
 6 plugins/sdk/                        @rgoldberg
 7 plugins/universalarchive/           @Konfekt
 8 plugins/wp-cli/                     @joshmedeski
 9+plugins/zoxide/                     @ajeetdsouza
10diff --git a/plugins/zoxide/README.md b/plugins/zoxide/README.md
11new file mode 100644
12index 0000000000000000000000000000000000000000..f326effe668cbdce8dbd42564a5a93e7c236d967
13--- /dev/null
14+++ b/plugins/zoxide/README.md
15@@ -0,0 +1,14 @@
16+# zoxide plugin
17+
18+Initializes [zoxide](https://github.com/ajeetdsouza/zoxide), a smarter cd
19+command for your terminal.
20+
21+![Tutorial](https://raw.githubusercontent.com/ajeetdsouza/zoxide/97dc08347d9dbf5b5a4516b79e0ac27366b962ce/contrib/tutorial.webp)
22+
23+To use it, add `zoxide` to the plugins array in your `.zshrc` file:
24+
25+```zsh
26+plugins=(... zoxide)
27+```
28+
29+**Note:** you have to [install zoxide](https://github.com/ajeetdsouza/zoxide#step-1-install-zoxide) first.
30diff --git a/plugins/zoxide/zoxide.plugin.zsh b/plugins/zoxide/zoxide.plugin.zsh
31new file mode 100644
32index 0000000000000000000000000000000000000000..e5658b8f0a5ea50a1f74e48766cdcb75b6704824
33--- /dev/null
34+++ b/plugins/zoxide/zoxide.plugin.zsh
35@@ -0,0 +1,5 @@
36+if (( $+commands[zoxide] )); then
37+  eval "$(zoxide init zsh)"
38+else
39+  echo '[oh-my-zsh] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide'
40+fi