diff options
| author | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-09-06 09:15:36 +0200 |
|---|---|---|
| committer | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-09-06 09:15:36 +0200 |
| commit | 0eb15e0d59f6e416a9923871e4a75af56232efaf (patch) | |
| tree | 60597eef6de20e8f881adab64a1f8301cf050bbe /config | |
| parent | 92bbb2fb27c2726bc1c72c4e50adc88144dee4b1 (diff) | |
| download | dotfiles-0eb15e0d59f6e416a9923871e4a75af56232efaf.tar.gz dotfiles-0eb15e0d59f6e416a9923871e4a75af56232efaf.tar.bz2 dotfiles-0eb15e0d59f6e416a9923871e4a75af56232efaf.zip | |
Updated zshrc ros setup to work when ros is not install
Diffstat (limited to 'config')
| -rw-r--r-- | config/zsh/.zshrc | 8 |
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 |
