Originally Posted by jschiwal
Add the commands in $HOME/.profile or $HOME/.bash_login, whichever you are currently using.
export PATH PRINTER
You can also use the syntax:
As far as I know, there is no effective difference; it is just personal preference. If a variable is already exported, it doesn't hurt to 're-export' it. The 'export' keyword causes the variable to be inherited by child processes that get spawned by the current shell process. Otherwise, the variables only exist within the context of the current shell process (and sometimes that is what you want).