How to source a environment when connecting remotely?

Hello guys!

From time to time, I open a remote terminal from the resin dashboard. I need to run some commands that only work after I executed this two lines:

source /opt/ros/kinetic/setup.bash
source /catkin_ws/devel/setup.bash

But I don’t want to run this two lines every time I open a terminal. Is there a way to execute them automatically?


Hey @hecontreraso,

I haven’t tested this yet, but you should just be able to put them in ~/.bash_profile? Then when you ssh into the container it should login and run the set up scripts.

It worked in .bashrc
thanks (:

1 Like