Skip to content

behradkhodayar/nestcli-zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

NestJS CLI Zsh Plugin

This plugin provides Zsh command-line completion for the Nest.js CLI.

Installation

Using a Plugin Manager (e.g., Oh My Zsh)

Clone the repository into your Oh My Zsh custom plugins directory:

git clone https://github.com/behradkhodayar/nestcli-zsh.git ${path_to_.oh-my-zsh_dir}/custom/plugins/nest

Add the plugin to your .zshrc file:

plugins=(... nest)

Restart your shell or source your .zshrc file:

source ~/.zshrc

Manual Installation

Clone the repository:

git clone https://github.com/behradkhodayar/nestcli-zsh.git

Source the plugin in your .zshrc file:

source /path/to/nestjs-zsh/_nest

Restart your shell or source your .zshrc file:

source ~/.zshrc

Usage

Once installed, the plugin will automatically provide completions for nest commands. Simply type nest and press Tab to see the available commands, options & sub-commands.

nest <Tab>

You'll see a list of available commands, such as new, add, generate, build, etc.

The plugin also provides completions for the add, build, generate, info, new & start command options & subcommands:

nest add <Tab>
nest generate <Tab>
nest start <Tab>
nest build <Tab>
...

So for example, hitting Tab on nest generate will show a list of available elements to generate, such as module, controller, service, etc.

About

Zsh completion plugin for Nest.js framework's CLI tool

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published