krupan / albion Goto Github PK
View Code? Open in Web Editor NEWA UNIX/Linux environment manager that allows on-the-fly configuration of your shell environment. Scroll down to read more.
License: GNU General Public License v3.0
A UNIX/Linux environment manager that allows on-the-fly configuration of your shell environment. Scroll down to read more.
License: GNU General Public License v3.0
Hi,
it would be nice if there was an example on how to set an environment variable.
I figured since you are eval'ing the output, I should write something like
echo export AMSHOME=/tools/cds/incisive_15.20.007_Linux;
(with the semicolon for separating multiple lines), but it doesn't seem to work for me. It may be that this is because my $SHELL
is set to tcsh, and I explicitly started bash --login
?
If you are looking for ideas to make adoption of albion easier, one would be to port the createmodule.py
script from Environment Modules over. See https://lists.fedoraproject.org/pipermail/scm-commits/2012-October/893142.html
For my use case however, this alone would not help, since setting a project up here does not just involve a single script, but some interactive menu structure thing.
I thought of two invocations of createmodule.py
, one before entering the project, one after, where createmodule.py
would use Python's pickle to save/restore the old state to/from a file. But AFAIK, pickle is not guaranteed to be compatible between different Python versions, so maybe that's not the best option if entering a project changes the default Python version...
Having such a script would even make switching from modules to albion easy - just use createalbion.py "module load foo/1.23"
.
In order to write shell tab completion code for e.g. compgen
, it is helpful to get a list of space-separated items from somewhere. It's best if "somewhere" is the tool to be completed itself.
So if I wanted to complete the configs, it would be good if albion's list-configs
would either be modified to return that list (and print the current format with list-configs-verbose
), or add a new command like list-configs-for-completion
.
The question now is what to return there - taking the example shipped with albion, it could be "mypath/1.0", a format which albion should then be able to digest, or just "mypath", with the "1.0" to be completed in a second step, which would then need another command like list-versions
.
(Same for the envs of course.)
(And don't let this ticket spoil your vacation, have fun :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.