Comments (6)
This is an old issue, but it helped me discover the solution, at least for myself.
Nave's path prepending works in zsh when you set your PATH
in ~/.zshenv
but not if you set it in ~/.zshrc
. Upon reading http://zsh.sourceforge.net/Intro/intro_3.html I discovered that ~/.zshenv
is the proper place for PATH
anyway. After moving my PATH
assignments to ~/.zshenv
, nave worked great in zsh for me.
Many people do keep their paths in ~/.zshrc
, so this may help someone else.
from nave.
In your .zshrc
, I guess you're setting your PATH to something? What's that line look like?
from nave.
I have several of these, but I think the main issue is that I'm prepending stuff to the PATH
, rather than appending. That is mainly to ensure that I use my Homebrew-installed versions of ruby, etc., rather than the old versions that ship with OS X.
from nave.
Here's where it's doing that stuff: https://github.com/isaacs/nave/blob/master/nave.sh#L93-L127
I don't use zsh, so it's possible I'm doing something wrong. But as I read the man's, it seems like it ought to be loading your zshrc file, and THEN prepending the nave path to it. But that's not happening apparently, so it's a bug, I guess.
As a workaround, you can sniff for the NAVE environment variables, and not do the PATH prepending, or do it differently, or add PATH=${NAVEPATH}:$PATH
at the end somewhere.
from nave.
@jameswomack oh, wow, thanks for that tip ❤️
You're a life saver 👼
from nave.
@jameswomack Sweet! Works for me too 👍
from nave.
Related Issues (20)
- shasum mismatch HOT 2
- shasum file in cache broken HOT 2
- Use the tab delimited file in the node dist folder instead of parsing html
- How to delete a named environment HOT 2
- How would I use environment variables from the parent shell? HOT 1
- Nave strips off `-n` from arguments
- Auto fails using fish as nave_run executed with exec HOT 1
- macOS install with brew HOT 1
- Named version does not link npx
- Unable to install any node with nave on Windows 10. HOT 1
- unsupported ARM architecture HOT 1
- Fallback to .nvmrc if .naverc isn't specified for nave auto HOT 4
- Q: Can I control where the node versions are installed? HOT 2
- This repository is huge. What is the universal recommended way to install only the files needed to run nave? HOT 2
- Is it possible to define environment variables, or specify a shell script to be sourced, per environment? HOT 12
- Cannot retrieve unmodified argument to `nave use` from environment HOT 8
- Nave caches 500s on index fetch HOT 2
- Clarify that `uninstall` can be used to remove named envs
- lts no longer works as a version HOT 4
- nave install/use version - Fails to install node if user has a shell alias or function called `shasum`
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 nave.