zsh中ros2 tab自动补全
环境:
- Ubuntu20.04
- ros-galactic
以galactic为例
sudo nano /opt/ros/galactic/share/rosidl_cli/environment/rosidl-argcomplete.zsh
将下行注释掉
autoload -U +X compinit && compinit
#autoload -U +X compinit && compinit
colcon自动补全
将下列命令加入 ~/.zshrc 末尾
eval "$(register-python-argcomplete3 colcon)"
最后重新source一下配置
source ~/.zshrc
标签:galactic,补全,compinit,colcon,ros,zsh
From: https://www.cnblogs.com/codealan/p/17153646.html