diff --git a/README.md b/README.md index 37f9984..e7a8675 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Zsh: | Command | Alias | Arguments | | --- | --- | --- | | `ros2 run tf2_tools view_frames` | `view_frames` | namespace of TF topic [Optional] | -| `ros2 run tf2_ros tf2_echo` | `tf2_echo`| frame 1 [Required], frame 2 [Required], namespace of TF topic [Optional] | +| `ros2 run tf2_ros tf2_echo` | `tf_echo`| frame 1 [Required], frame 2 [Required], namespace of TF topic [Optional] | ## Colcon @@ -81,6 +81,7 @@ Zsh: | --- | --- | --- | | `colcon build --symlink-install` | `cb` | | `colcon build --symlink-install --packages-select` | `cbp`| package 1 [Optional] ... package n [Optional] | +| `colcon build --symlink-install --packages-skip` | `cbs`| package 1 [Optional] ... package n [Optional] | | `colcon list` | `cl` | ## Rosdep diff --git a/ros2_utils.bash b/ros2_utils.bash index 63ca369..79c995a 100644 --- a/ros2_utils.bash +++ b/ros2_utils.bash @@ -227,6 +227,20 @@ function cbp { history -s $CMD } +function cbs { + if [ $# -eq 0 ]; then + PACKAGE=$(colcon list -n | fzf) + [[ -z "$PACKAGE" ]] && return + local CMD="colcon build --symlink-install --packages-skip $PACKAGE" + else + local CMD="colcon build --symlink-install --packages-skip $@" + fi + echo $CMD + $CMD + history -s cbs $@ + history -s $CMD +} + function cl { CMD="colcon list -n" echo $CMD diff --git a/ros2_utils.zsh b/ros2_utils.zsh index 46ffc05..6941b8e 100644 --- a/ros2_utils.zsh +++ b/ros2_utils.zsh @@ -226,6 +226,20 @@ function cbp { print -s $CMD } +function cbs { + if [ $# -eq 0 ]; then + PACKAGE=$(colcon list -n | fzf) + [[ -z "$PACKAGE" ]] && return + CMD="colcon build --symlink-install --packages-skip $PACKAGE" + else + CMD="colcon build --symlink-install --packages-skip $@" + fi + echo $CMD + eval $CMD + print -s cbs $@ + print -s $CMD +} + function cl { CMD=(colcon list -n) echo $CMD