Skip to content

JamesKovacs/zsh_completions_mongodb

Repository files navigation

zsh_completions_mongodb

ZSH completion files for MongoDB Server, Database Tools, and MongoDB Shell:

  • bsondump
  • mongo
  • mongod
  • mongodump
  • mongoexport
  • mongofiles
  • mongoimport
  • mongorestore
  • mongos
  • mongosh
  • mongostat
  • mongotop

Install for oh-my-zsh

  • Clone zsh_completions_mongodb inside your oh-my-zsh custom plugins directory:

      git clone https://github.com/JamesKovacs/zsh_completions_mongodb.git ~/.oh-my-zsh/custom/plugins/mongodb
    
  • Enable the mongodb plugin in your ~/.zshrc:

      plugins=(… mongodb)
    
  • Start a new zsh session or reload completions:

      autoload -U compinit && compinit
    

Install for oh-my-zsh with Antigen

  • Installation with antigen

      antigen bundle JamesKovacs/zsh_completions_mongodb
    

Manual installation

  • 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
    

About

ZSH completion files for MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published