catkin / catkin_tools

Command line tools for working with catkin
Apache License 2.0
163 stars 146 forks source link

Enable bash completion for the catkin cd verb #703

Closed meyerj closed 2 years ago

meyerj commented 2 years ago

This patch enables tab completion for the catkin cd shell verb (defined in catkin_tools/verbs/catkin_shell_verbs.bash) for the bash, which I found very convenient and corresponds to the behavior of roscd.

Probably it can and should also be applied to completion/_catkin in a similar way, which is for Zsh I assume, but I am not familiar with that and currently lack the time to look into or test it.

timonegk commented 2 years ago

Thanks for the patch. I updated the completion to complete shell verbs only when they are sourced and added zsh completion. Since I could not push on your branch directly, I opened a new pull request (#706). Feel free to test it.