aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/zsh/.zshrc8
1 files 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