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.)
(I'd been making the slight-environment-change aliases into bash functions as a workaround. You just helped me so much.)
# 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.
berlin='env TZ=Europe/Berlin date'