feat(shell): reintroduce ros.plugin.sh#757
Merged
texhnolyze merged 1 commit intomainfrom Mar 10, 2026
Merged
Conversation
which handles aliases and tab completion for `ros2` and `colcon`. Only in comparison to previous iterations we now have two expected modes: - normal `zsh` - `zsh` started by `pixi shell` parent process In a normal `zsh` environment we alias `ros2` and `colcon` commands to the configured `pixi` tasks in the `ROS_WORKSPACE`. In a `pixi shell` we instead overwrite those aliases with direct execution of `ros2` and `colcon` to allow for tab completion. This helps a lot with commands, that are dependent on the environment like: - `ros2 topic echo` (showing available topics on tab) - `colcon build --packages-select` (showing available packages) To allow for this tab completion, we have to manually generate the completions into `$CONDA_PREFIX/share/zsh/site-functions` with `register-python-argcomplete` as they are not part of the conda packages.
b50f175 to
5b04031
Compare
jaagut
reviewed
Mar 9, 2026
Flova
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
which handles aliases and tab completion for
ros2andcolcon.Only in comparison to previous iterations we now have two expected
modes:
zshzshstarted bypixi shellparent processIn a normal
zshenvironment we aliasros2andcolconcommandsto the configured
pixitasks in theROS_WORKSPACE.In a
pixi shellwe instead overwrite those aliases with directexecution of
ros2andcolconto allow for tab completion.This helps a lot with commands, that are dependent on the environment
like:
ros2 topic echo(showing available topics on tab)colcon build --packages-select(showing available packages)To allow for this tab completion, we have to manually generate the
completions into
$CONDA_PREFIX/share/zsh/site-functionswithregister-python-argcompleteas they are not part of the condapackages.
Related issues
Checklist
pixi run build