From 0eb15e0d59f6e416a9923871e4a75af56232efaf Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 6 Sep 2022 09:15:36 +0200 Subject: Updated zshrc ros setup to work when ros is not install --- config/zsh/.zshrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index dbaaa90..a1211cd 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -107,7 +107,9 @@ export YSU_MESSAGE_POSITION="after" # you-should if [ "$(uname)" = 'Linux' ] then . /usr/share/doc/pkgfile/command-not-found.zsh + if [ -d /opt/ros2/galactic ] + then + export ROS_DOMAIN_ID=42 + . /opt/ros2/galactic/setup.zsh + fi fi - -export ROS_DOMAIN_ID=42 -. /opt/ros2/galactic/setup.zsh -- cgit