bashrc不会自动运行

时间:2019-12-16 09:21:57

标签: bash ubuntu-18.04 ros

我在bashrc文件的底部添加了一些逗号

#set ROS melodic
source /opt/ros/melodic/setup.bash
source ~/catkin_ws/devel/setup.bash

#set ROS network
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://${ROS_HOSTNAME}:11311

#set ROS alias command
alias set_roscore='source /opt/ros/melodic/setup.bash'
alias cw='cd ~/catkin_ws'
alias cs='cd ~/catkin_ws/src'
alias cm='cd ~/catkin_ws && catkin_make'

当我打开新的终端窗口时,这些命令行没有运行。

来源/opt/ros/melodic/setup.bash

source〜/ catkin_ws / devel / setup.bash

0 个答案:

没有答案