GithubHelp home page GithubHelp logo

krupan / albion Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 77 KB

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

Shell 21.38% Python 78.62%

albion's People

Contributors

krupan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

cmarqu

albion's Issues

How to set environment variable?

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?

Port createmodule.py to albion?

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".

Make it easier to write shell completion code

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.