krupan / albion

A UNIX/Linux environment manager that allows on-the-fly configuration of your shell environment. Scroll down to read more.
GNU General Public License v3.0
2 stars 1 forks source link

How to set environment variable? #1

Closed cmarqu closed 7 years ago

cmarqu commented 8 years ago

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?

cmarqu commented 8 years ago

Oh, I see. albion is just source'ing whatever it finds in the config file and that's it. I was somehow thrown off by the shell function in the mypath example and assumed I would also need to have a shell function with the name of my config. Maybe it would be good to provide a simple example called env-vars?

krupan commented 8 years ago

A simple example is a great suggestion. I keep getting good ideas from people right when I'm starting a vacation (am I vacationing too much?), but I will add that example when I return home.

Bryan

On Sep 9, 2016 5:12 AM, "Colin Marquardt" notifications@github.com wrote:

Oh, I see. albion is just source'ing whatever it finds in the config file and that's it. I was somehow thrown off by the shell function in the mypath example and assumed I would also need to have a shell function with the name of my config. Maybe it would be good to provide a simple example called env-vars?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/krupan/albion/issues/1#issuecomment-245885376, or mute the thread https://github.com/notifications/unsubscribe-auth/AB4STsWaC1G6Eur4sh21jnrTxTh7IOX-ks5qoT8UgaJpZM4J473H .

cmarqu commented 8 years ago

I would have made a pull request here, but wasn't sure whether your gateway to hg is bidirectional, so may have been wasted effort...

krupan commented 7 years ago

Don't hesitate to create a pull request. I'm sure I can figure out how to get into my repo.

krupan commented 7 years ago

I added an example in commit cb88287fb659047422597a6562d581ebb0f66b9c