Re: [Fish-users] enivronment setup
Status: Beta
Brought to you by:
liljencrantz
|
From: L M. <lau...@gm...> - 2013-08-21 14:12:59
|
Hi, Hi, > > I use FreeSurfer brain MRI analysis software, which is mostly command-line > based. To use the software, a script must be 'sourced' which sets > environment variables, paths, and support libraries. The software comes > with csh and sh versions, which obviously can't be sourced with fish. > Running 'bash script.sh' won't work either, because after the variables are > set up in bash I return to the fish shell with no setup. Do I need to port > the script to fish, or is there an easier way? If I do have to re-write the > script, I'm guessing I should start from the csh script - are there any > tools which convert the syntax? > There's not much you can do other than rewrite the bash file to a fish file. I had a similar problem and I looked into adding fish to environment modules, which is available in most operating system repositories (and used in Fedora for switching between different MPI software): http://sourceforge.net/p/modules/discussion/49345/thread/5f0e4f38/?limit=25#6d5e However I couldn't quite get it to work (fish does not colon delimit paths), which was a shame. |