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?
Asked by CraigH92 on 2020-12-07 09:08:23 UTC
Comments
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-spawn-shellAsked by sloretz on 2020-12-07 12:23:26 UTC