Comments (2)
I've traced the loading lag to nvmrc
, specifically:
source /usr/local/opt/nvm/nvm.sh
In order to disable this, you will need to comment out the whole nmvrc loader section of the .zshrc, but then it loads the shell much faster:
https://github.com/atomantic/dotfiles/blob/master/homedir/.zshrc#L37-L48
source /usr/local/opt/nvm/nvm.sh
autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use &> /dev/null
elif [[ $(nvm version) != $(nvm version default) ]]; then
nvm use default &> /dev/null
fi
}
add-zsh-hook chpwd load-nvmrc
load-nvmrc
from dotfiles.
I believe this is fixed in the latest version--rather than disabling nvmrc altogether it appears it was the default behavior of loading the default
node version that was the culprit. So now we prevent default load immediately and also remove the default use
command as a fallback to projects not having an .nvmrc
from dotfiles.
Related Issues (20)
- ? mark in iterm HOT 6
- How to add personal hosts to /etc/hosts? HOT 3
- Support for iTerm2? HOT 1
- Preferable option for passwordless sudo? HOT 1
- installation freezes at HOT 2
- Want Brewfile? HOT 5
- Terminal exits just after iTerm is launched
- Any thoughts to using "bat" inplace of "cat" HOT 2
- Why are my .bash_aliases and .bash_profile ignored after the instal.sh script is done? HOT 2
- Command line loading speed is too slow HOT 2
- Font installation from Homebrew fails HOT 2
- Setting for saving to disk by default not iCloud has obliterated my local copies of Documents, Desktop, etc. HOT 2
- Support for Java things
- Problem with print_result (Line 173 + 179 of Install Script) HOT 1
- Potential typo in require_brew() function
- VIM plugins stage takes three hours or more HOT 8
- brew --with-default-names option is deprecated
- Terminal is bricked HOT 2
- Interview partners for research about communication in GitHub projects wanted
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 dotfiles.