jscutlery / nx-completion

Nx workspace completion plugin for Zsh.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nx completion plugin for Zsh

This plugin bring Nx autocompletion to Zsh.

demo

Features

  • Commands and arguments autocompletion
  • Projects, targets, and generators autocompletion
  • Support different workspace versions

Install

Prerequisit

Install jq dependency:

apt install jq

On MacOS you can install with:

brew install jq

Note: jq is a lightweight command-line JSON processor used to manipulate the workspace graph.

As an Oh My ZSH! custom plugin

Clone the repository into the custom plugins directory:

git clone git@github.com:jscutlery/nx-completion.git ~/.oh-my-zsh/custom/plugins/nx-completion

Then load it as a plugin in your .zshrc:

plugins+=(nx-completion)

Manually

Clone this repository somewhere (~/.nx-completion for example):

git clone git@github.com:jscutlery/nx-completion.git ~/.nx-completion

Then source it in your .zshrc:

source ~/.nx-completion/nx-completion.plugin.zsh

License

This project is MIT licensed.

About

Nx workspace completion plugin for Zsh.

License:MIT License


Languages

Language:Shell 100.0%