首页 > 其他分享 >zsh中ros2与colcon命令 tab补全失效解决办法[ros-galactic]

zsh中ros2与colcon命令 tab补全失效解决办法[ros-galactic]

时间:2023-02-25 01:11:27浏览次数:46  
标签:galactic 补全 compinit colcon ros zsh

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

argcomplete

#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

相关文章