I refer to help.ubuntu.com to set environment variables.
I'm required to set some variables (GRIFFON_HOME and GROOVY_HOME) for a user and also I want to include
bin folders to my
PATH so I edited
~/.pam_environment as follows.
LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 PAPERSIZE=letter JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/ GRIFFON_HOME=/opt/griffon GROOVY_HOME=/opt/groovy PATH=$PATH:$GRIFFON_HOME/bin:$GROOVY_HOME/bin
and I executed following command
After this, both
groovy commands are included in my
PATH but after I exit that
terminal and reopen another terminal and try to execute
griffon, both commands are not included in my
PATH. But I've found that the variable
GRIFFON_HOME are still set.
How can I have my
PATH to include the
bin folders permanently?