Sorry, I should have been more clear that
was setting the environment variable A to "foo", and not setting up an alias.
To confirm, I only need to edit ~/.bashrc. If I wanted to set an environment variable, I would add:
If I want to append something to an existing environment variable, I would add (omitting the checking code):
Code:
A="${foo}":/path/to/somewhere
Can I set it anywhere inside ~/.bashrc, or is there a specific place?
One final thing: does Ubuntu first read /etc/environment for system-wide environment variables, and then read ~/.bashrc for user-specific environment variables (i.e., my changes will not be clobbered)?
Bookmarks