Giter Club home page Giter Club logo

Comments (2)

isaacs avatar isaacs commented on May 26, 2024

Do you have something in your bash profile files (Probably ~/.bashrc, .profile, or .bash_profile, but maybe also /etc/bashrc, /etc/profile, /etc/bash_profile, see man bash for any others) that sets the PATH environ? If so, change any line that looks like this:

export PATH=/whatever

To be something like this instead:

export PATH=$PATH:/whatever

from nave.

bmenant avatar bmenant commented on May 26, 2024

La Nuit est de bon conseil.

This night, I remembered the /etc/zsh/zshenv which contains an hardcoded export PATH. Just like you said.
So, I changed the line to include the old $PATH value into the newer.

Here is the result:

% echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/sbin:/home/jdoes/bin:/var/lib/gems/current/bin
% echo $NAVELVL

% nave use latest
Already installed: 0.5.0
using 0.5.0
% node -v
v0.5.0
% echo $PATH
/home/jdoes/.nave/installed/0.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/sbin:/home/jdoes/bin:/var/lib/gems/current/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/sbin:/home/jdoes/bin:/var/lib/gems/current/bin

Works like a charm. Of course, the PATH environ becomes redundant, but that's ok for me.

Thanks!

EDIT:
As the PATH environ was becoming quite heavy, using screen plus nave, I finaly updated my startup script like that:

if [[ $NAVELVL < 1 ]]; then
    export PATH="/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/sbin:$HOME/bin:/var/lib/gems/current/bin"
fi

from nave.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.