Git Product home page Git Product logo

Comments (4)

isaacs avatar isaacs commented on May 27, 2024 1

Another option, you could create a file at ~/.naverc with this in it:

# ~/.naverc
echo node@$(node -v)
echo npm@$(npm -v)

and then it'll print out every time you enter a nave environment.

from nave.

isaacs avatar isaacs commented on May 27, 2024

I recommend putting $NAVE in your $PS1 environment variable or $PROMPT_COMMAND. Here's what I use, with node -v when $NAVE is unset, so that nave shells show the node version in a different color: https://github.com/isaacs/dotfiles/blob/master/.extra.bashrc#L766-L787 Here's what it looks like:

screenshot 2017-02-02 22 32 49

It's very noisy to have nave print the version every time you enter or exit a shell, and can disrupt scripts that use it. It used to do this, but it was changed.

from nave.

rogeriotaques avatar rogeriotaques commented on May 27, 2024

@isaacs,
Thank you for that.
Let me try it and come back to you later.

from nave.

rogeriotaques avatar rogeriotaques commented on May 27, 2024

@isaacs your suggestion has worked like a charm! Thanks.

Just FYI, check what my ~/.naverc looks like:

# Displays NODE and NPM version always NAVE changes it.
echo node@$(node -v)/ npm@$(npm -v)

It outputs the following, where 0.0.0 is the current versions.

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.