使用colcon_cd
Kong Liangqian Lv6
1
echo "source /usr/share/colcon_cd/function/colcon_cd.sh" >> ~/.bashrc
1
echo "export _colcon_cd_root=~/dev_ws" >> ~/.bashrc

以上的内容即把dev_ws作为根目录,之后的colcon_cd都从他的src下面目录寻找

 Comments