Comments (10)
Which plugin are you using? When are you having this error message? Please add more details to the problem so we can help out.
from oh-my-fish.
I am trying to start the ember server via ember server
. Normally in bash, having source ~/.nvm/nvm.sh
in .bashrc
will get this working
from oh-my-fish.
@krzkrzkrz NVM is written in bash, thus it will not work seamlessly with fish. I recommend you to use foreign-env plugin to run NVM inside fish.
from oh-my-fish.
Would https://github.com/tj/n be a better fit for Fish?
from oh-my-fish.
Also, using foreign-env
. Installed via omf install foreign-env
. Where should the following go?
fenv source ~/.nvm/nvm.sh \;
In ~/.config/fish/config.fish
?
from oh-my-fish.
This line doesn't do anything usable. NVM is implemented as a bash function, so you need to specify a nvm command afterwards:
fenv source ~/.nvm/nvm.sh \; nvm --help
from oh-my-fish.
@derekstavis which file should that line go into?
from oh-my-fish.
This line don't need to be anywhere, you need to use it to install node versions:
fenv source ~/.nvm/nvm.sh\; nvm install 0.10
Or to use a specific node version:
fenv source ~/.nvm/nvm.sh\; nvm use 0.10
But if you need to change to a node version just when you open a new shell:
echo 'fenv source ~/.nvm/nvm.sh\; nvm use 0.10' >> $OMF_CONFIG/init.fish
EDIT: mistyped, it's init.fish
not init/fish
from oh-my-fish.
Bear in mind that as nvm
is a bash function it will not be available in fish. Foreign env executes its arguments inside bash, that's why you need to fenv source ~/.nvm/nvm.sh\;
in the same live where you call nvm
.
It's on my plans adding a nvm
plugin to the framework, but as it's dependant upon foreign-env
we need to tackle plugin dependency management before.
from oh-my-fish.
Good to know and thanks for the help. Closing for now
from oh-my-fish.
Related Issues (20)
- ctrl+a, ctrl+b are not working after OMF installed HOT 8
- Installation failure from curl on Pop-os HOT 4
- 'omf install powerline' responding with "Please install powerline" and not being usable HOT 1
- Is this project active? HOT 2
- Installer checksum in README.md isn't up to date.
- Print error: failed to parse choice argument: 2- HOT 2
- Cannot omf update or install packages
- All plugins
- Z
- OMF's offline installation doesn't really work offline
- Theme not updating even after using command for theme change.
- This no longer supports Fish 2.2.0
- Can't change the theme HOT 1
- I just install OMF and installed the cyan theme and this happened HOT 2
- I see a `[I]` in my fish! HOT 2
- oh-my-fish crashes Garuda-Update process HOT 2
- Remove [I] in the prompt HOT 1
- Installer does not check `$OMF_PATH` permissions
- Prompt Encoding as Question Mark HOT 2
- OMF not found no matter how hard i try to install it HOT 3
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 oh-my-fish.