Comments (5)
There actually is a solution to this that I found that I would like to share. Instead of using an alias, you can use a function instead. Using this function while navigated inside of an Nx project gives me functional autocomplete.
function nx() {
npx nx "$@"
}
from nx-completion.
I think it won't work because compdef will receive "npx" under the hood, completion won't be triggered.
from nx-completion.
Unfortunately, it's not possible using compdef, command definition is static and should start with nx to trigger the completion. But I think using Nx globally is fine since it handles local version mismatch pretty well.
from nx-completion.
Ok, I understand.
Also, as a workaround, I would try to create an alias on my system alias nx="npx nx"
. If this works I would close this issue.
from nx-completion.
Yes, you are right, is not working.
Well. I supposed that I will close this issue
from nx-completion.
Related Issues (16)
- Feature Request: Work with local Nx CLI installation HOT 1
- 'nx g' does not complete
- Feature: dynamically grab target definition and build completion out of it HOT 3
- Bug: cache works only for `nx` root command
- Does not work without a workspace file HOT 8
- > NX Running global Nx CLI with PNPM may have issues. HOT 5
- Is md5sha1sum also a dependency?
- Support for workspace definition v2 format
- zsh-snap load HOT 1
- Breaks on plugins that cannot be found
- nx lint doesn't autocomplete project names
- Support for standalone project definition
- Format arguments to camel-case HOT 9
- Update arguments to stick to nx 12.x.x
- This plugin breaks globalias HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-completion.