un-source ros2 package without closing and reopening console
Hi,
On Ubuntu 20.04, ROS2 Foxy, is there a way to "reset" your environment, equivalent to closing and reopening the terminal, without actually having to close and reopen it?
You mean, like a virtualenv's
deactivate
command in Python? I don't know of anything like that for the same shell. If you're building from source and usingbash
,colcon-spawn-shell
creates a setup script that spawns a new shell with a colcon workspace sourced, then that shell can be exited. https://github.com/colcon/colcon-spaw...