Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Prompt support? #216

Closed
mcandre opened this issue Apr 9, 2013 · 4 comments
Closed

Command Prompt support? #216

mcandre opened this issue Apr 9, 2013 · 4 comments

Comments

@mcandre
Copy link

mcandre commented Apr 9, 2013

I usually use Git Bash, but I'm curious how we could get nvm to work with a bare Command Prompt, and how we could tell cmd to automatically load nvm.

@creationix
Copy link
Collaborator

Like I mentioned in your other ticket, this would be very hard since nvm is not a script executable. It's a function definition that bash sources. As far as I know, there is no equivalent in cmd.exe's environment. Even if there was, the language would be bat or whatever powershell speaks.

@danieltdt
Copy link
Contributor

You can do

PS1="$PS1 [$(nvm_ls 'current')]"

@danieltdt
Copy link
Contributor

Oh, I think I misunderstood your question... sorry :(

@ljharb
Copy link
Member

ljharb commented Sep 20, 2014

#284 handles the question of supporting Windows.

@ljharb ljharb closed this as completed Sep 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants