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

Where do settings normally go? #9

Closed
krzkrzkrz opened this issue Sep 8, 2015 · 1 comment
Closed

Where do settings normally go? #9

krzkrzkrz opened this issue Sep 8, 2015 · 1 comment

Comments

@krzkrzkrz
Copy link

Awesome plugin!

Settings like bass source ~/.nvm/nvm.sh ';' nvm use iojs should go in .config/fish/config.fish?

@edc
Copy link
Owner

edc commented Sep 8, 2015

Correct. That will cause nvm use iojs to be executed at the startup of every fish session. Alternatively, you could define this function:

function nvm
    bass source ~/.nvm/nvm.sh ';' nvm $argv
end

and save it as ~/.config/fish/functions/nvm.sh. Then you can use the nvm command as if you were in bash. For example:

nvm ls-remote

would invoke ls-remote to list all remote versions, and

nvm use v0.10.36

would activate version 0.10.36 of nodejs (if it is installed).

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

No branches or pull requests

2 participants