Attention: Answers.ros.org is deprecated as of August the 11th, 2023. Please visit robotics.stackexchange.com to ask a new question. This site will remain online in read-only mode during the transition and into the foreseeable future. Selected questions and answers have been migrated, and redirects have been put in place to direct users to the corresponding questions on Robotics Stack Exchange. Additional details are available here.
You can also write the two needed lines in the terminal (=bash) just to test it at first.
If you put it in the .bashrc instead (recommended), it will be automatically loaded at any start of the bash, therefore the name of that file. To apply changes, you need to:
restart the bash or
"source" the .bashrc, then you do not need a restart of the bash: source ~/.bashrc.
You can also write the two needed lines in the terminal (=bash) just to test it at first.
If you put it in the .bashrc instead (recommended), (recommended, since any change is lost when another bash is used), it will be automatically loaded at any start of the bash, therefore the name of that file. To apply changes, you need to:
restart the bash or
"source" the .bashrc, then you do not need a restart of the bash: source ~/.bashrc.
You can also write the two needed lines in the terminal (=bash) just to test it at first. Mind that any change is lost when another bash is used.
If you put it in the .bashrc instead (recommended, since any change is lost when another bash is used), (recommended), it will be automatically loaded at any start of the bash, therefore the name of that file. To apply changes, you need to:
restart the bash or
"source" the .bashrc, then you do not need a restart of the bash: source ~/.bashrc.