ZSH completion files for MongoDB Server, Database Tools, and MongoDB Shell:
bsondumpmongomongodmongodumpmongoexportmongofilesmongoimportmongorestoremongosmongoshmongostatmongotop
Install for oh-my-zsh
-
Clone
zsh_completions_mongodbinside youroh-my-zshcustom plugins directory:git clone https://github.com/JamesKovacs/zsh_completions_mongodb.git ~/.oh-my-zsh/custom/plugins/mongodb -
Enable the
mongodbplugin in your~/.zshrc:plugins=(… mongodb) -
Start a new
zshsession or reload completions:autoload -U compinit && compinit
-
Installation with antigen
antigen bundle JamesKovacs/zsh_completions_mongodb
-
Clone the repository:
git clone https://github.com/JamesKovacs/zsh_completions_mongodb.git -
Include the directory in your
$fpath, for example by adding in~/.zshrc:fpath=(path/to/zsh_completions_mongodb $fpath) -
You may have to force rebuild
zcompdump:rm -f ~/.zcompdump; compinit