소스 검색

feat: add term color setting to dockerfile

lujw2 5 달 전
부모
커밋
920b2ced7c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      ros2-galactic.Dockerfile

+ 2 - 1
ros2-galactic.Dockerfile

@@ -19,7 +19,8 @@ RUN sed -i 's/http:\/\/archive.ubuntu.com\//http:\/\/mirrors.aliyun.com\//g' /et
 # ********************************************************
 # * Anything else you want to do like clean up goes here *
 # ********************************************************
-RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/jasper/.bashrc
+RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/jasper/.bashrc \
+    && echo "export TERM=xterm-256color" >> /home/jasper/.bashrc
 
 # [Optional] Set the default user. Omit if you want to keep the default as root.
 USER $user