News for hackers. Stuff that matters.
Re:Making Remote Work Work by sneak on Thursday February 13, 2014 @01:38PM (#7233183)
SO THAT'S HOW YOU SET ENVIRONMENT VARIABLES IN ALIASES! THANK YOU!

(I'd been making the slight-environment-change aliases into bash functions as a workaround. You just helped me so much.)

Re:Making Remote Work Work by mscman on Thursday February 13, 2014 @02:34PM (#7233677)
This works in a normal bash/zsh prompt as well if you want to set a variable only for that single command. It's why a lot of times you'll see build instructions like:

# CC=gcc make

After the command runs, CC will go back to whatever it was set to before (or unset if it wasn't set). Very handy for some operations.

Re:Making Remote Work Work by emillon on Friday February 14, 2014 @03:57AM (#7237594)
I think that you can also use env(1) for this.

    berlin='env TZ=Europe/Berlin date'