A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jscutlery/nx-completion below:

jscutlery/nx-completion: Nx workspace completion plugin for Zsh.

Nx completion plugin for Zsh

This plugin bring Nx autocompletion to Zsh.

Install jq dependency:

On MacOS you can install with:

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

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:

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

When reinstalling or updating the nx-completion plugin, you may need to flush the zsh completion cache to ensure you're using the latest version.

The simplest way to clear the zsh completion cache:

# Clear zsh completion cache and rebuild
rm -rf ~/.zcompdump* && autoload -U compinit && compinit -D
Using the Clear Cache Script

Run the included script for automated cache clearing:

# Make executable and run
chmod +x clear-cache.zsh
./clear-cache.zsh

This repository includes a comprehensive test environment in the test/ directory with simplified project structures for easy testing and development.

Test Environment Structure
test/
β”œβ”€β”€ .nx/workspace-data/project-graph.json  # Main test graph (.nodes structure)
β”œβ”€β”€ nx.json                                # Nx workspace config
β”œβ”€β”€ project-graph-nested.json              # Test graph (.graph.nodes structure)
β”œβ”€β”€ test-completion.zsh                    # Automated test script
β”œβ”€β”€ test-cache.zsh                         # Cache performance test script
β”œβ”€β”€ PERFORMANCE-TESTING.md                 # Real-world performance testing guide
└── README.md                              # Test environment docs
# Run automated tests
cd test && ./test-completion.zsh

# Test caching performance
cd test && ./test-cache.zsh

# Interactive completion testing
cd test
source ../nx-completion.plugin.zsh
nx <TAB>  # Test completions

# Performance testing guide
cd test && cat PERFORMANCE-TESTING.md

The test environment includes 5 projects (frontend-app, backend-api, shared-utils, ui-components, data-access) with realistic Nx configurations and supports testing both JSON structure formats.

This project is MIT licensed.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4