Browse Source

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

Ajeet D'Souza 3 years ago
parent
commit
36cc94f3dc
3 changed files with 20 additions and 0 deletions
  1. 1 0
      .github/CODEOWNERS
  2. 14 0
      plugins/zoxide/README.md
  3. 5 0
      plugins/zoxide/zoxide.plugin.zsh

+ 1 - 0
.github/CODEOWNERS

@@ -7,3 +7,4 @@ plugins/gitfast/                    @felipec
 plugins/sdk/                        @rgoldberg
 plugins/universalarchive/           @Konfekt
 plugins/wp-cli/                     @joshmedeski
+plugins/zoxide/                     @ajeetdsouza

+ 14 - 0
plugins/zoxide/README.md

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

+ 5 - 0
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