kasahs / .znvm Goto Github PK
View Code? Open in Web Editor NEWlazy load nvm on zsh along with obvious .nvmrc file behaviour
License: MIT License
lazy load nvm on zsh along with obvious .nvmrc file behaviour
License: MIT License
using config
ZNVM_PREEXEC=("code", "subl")
should match the commands subl and code on the command line however the regex used overfits and matches any occurrence of these words. It should only match commands starting with these words and followed by at least one space.
Demo:
# without args
subl
loading nvm...
# with args
subl ~/Code/znvm
# nvm not loaded
I think a split at space char should do the trick. Here are the lines where this match happens:
znvm_load_pre_exec () {
if znvm_contains_elem "$1" "${ZNVM_PREEXEC[@]}"; then
load-nvm
fi
}
If terminal is opened on a directory that contains or has a parent that contains a .nvmrc
file it must load nvm
with the appropriate node version immediately.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.