Source colcon workspaces in a new shell.
This is a colcon plugin to chain workspaces in new shells. It allows quickly un-chaining workspaces by exiting the spawned shell.
The shell’s prompt is edited to show the workspace order. The only supported shell is bash.
Optional: Create and source a virtual environment.
python3 -m venv env . env/bin/activate
Download colcon-spawn-shell from pip.
pip install colcon-spawn-shell
Build the colcon workspace you would like to spawn in a new shell.
cd my_cool_workspace colcon build
Source spawn_shell.bash to activate the workspace.
Download the source code for colcon-spawn-shell
mkdir -b spawn_shell_ws/src cd spawn_shell_ws/src git clone https://github.com/colcon/colcon-spawn-shell.git
Build the workspace using colcon
Source the workspace
From now on future workspaces can be activated by sourcing spawn_shell.bash
cd my_cool_workspace colcon build . install/spawn_shell.bash
Follow the “From Source” instructions, except clone your forked repository.
Make changes and commit them to a branch.
# Creat a branch for your changes git checkout -b my-cool-changes # Make your changes ... git commit -m "committing my changes" # Push them to your fork git push --set-upstream origin my-cool-changes
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for colcon_spawn_shell-0.3.0-py3-none-any.whl