summaryrefslogtreecommitdiffstats
path: root/zsh/oh-my-zsh/plugins/mongocli
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2022-10-03 21:42:20 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2022-10-03 21:42:20 +0530
commitaf120ab348f2e1a5a39dec035ed9dcf84189a64e (patch)
tree2a3aadd7ce1b7b771dfe3fe7c983569726c8d7ed /zsh/oh-my-zsh/plugins/mongocli
downloaddotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.tar.gz
dotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.tar.bz2
dotfiles-af120ab348f2e1a5a39dec035ed9dcf84189a64e.zip
dotfiles
Diffstat (limited to 'zsh/oh-my-zsh/plugins/mongocli')
-rw-r--r--zsh/oh-my-zsh/plugins/mongocli/README.md19
-rw-r--r--zsh/oh-my-zsh/plugins/mongocli/mongocli.plugin.zsh4
2 files changed, 23 insertions, 0 deletions
diff --git a/zsh/oh-my-zsh/plugins/mongocli/README.md b/zsh/oh-my-zsh/plugins/mongocli/README.md
new file mode 100644
index 0000000..e245f2a
--- /dev/null
+++ b/zsh/oh-my-zsh/plugins/mongocli/README.md
@@ -0,0 +1,19 @@
+# mongocli plugin
+
+The plugin adds several aliases for common [mongocli](https://docs.mongodb.com/mongocli/stable/) commands.
+
+To use it, add `mongocli` to the plugins array of your zshrc file:
+
+```zsh
+plugins=(... mongocli)
+```
+
+## Aliases
+
+| Alias | Command | Description |
+|----------|-------------------------------------------------------------|--------------------------------------------------------|
+| `ma` | `mongocli atlas` | Shortcut for mongocli Atlas commands. |
+| `mcm` | `mongocli cloud-manager` | Shortcut for mongocli Cloud Manager commands. |
+| `mom` | `mongocli ops-manager` | Shortcut for mongocli Cloud Manager commands. |
+| `miam` | `mongocli iam` | Shortcut for mongocli IAM commands. |
+
diff --git a/zsh/oh-my-zsh/plugins/mongocli/mongocli.plugin.zsh b/zsh/oh-my-zsh/plugins/mongocli/mongocli.plugin.zsh
new file mode 100644
index 0000000..0ca877e
--- /dev/null
+++ b/zsh/oh-my-zsh/plugins/mongocli/mongocli.plugin.zsh
@@ -0,0 +1,4 @@
+alias ma='mongocli atlas'
+alias mcm='mongocli cloud-manager'
+alias mom='mongocli ops-manager'
+alias miam='mongocli iam'