How to customize setup.bash without directly editing setup.bash
Say I have ~/my_ws
workspace and I have ~/my_ws/devel/setup.bash
inside which is automatically created.
I'd like to customize the setup.bash
behavioir, more concretely, I'd like to add export PATH=/path/to/somewhere:$PATH
line to setup.bash
. I want this export only when I use my_ws
workspace, so I don't want to add this line to my ~/.bashrc
. Also, I don't want to manually edit the setup.bash
because it is dirty and leading to bags.
Does anybody have good approach to realize the above need?
you can try editing the setup.sh file and add whatever you need to add. I did not get what did you mean by without manual editing