Robotics StackExchange | Archived questions

alias to source current workspace

Hi, I am (unfortunately) not a bash expert and would like to create an alias that sources the current workspace, i.e. do the following:

Of course, the names for workspace and ws1 should be flexible which is why I don't want to put the absolute path in the .bashrc. Thx for any pointer!

Asked by ticotico on 2021-09-02 12:04:31 UTC

Comments

So this isn't really a ROS question.

While the context is certainly ROS-related, as you already imply yourself, implementing what you describe is mostly a Bash affair.

You may get more / better / quicker responses if you post this on something like Stack Exchange.

Asked by gvdhoorn on 2021-09-02 14:49:36 UTC

Answers