]> git.rmz.io Git - dotfiles.git/commitdiff
source ros only if it's installed
authorSamir Benmendil <samir.benmendil@gmail.com>
Thu, 3 Oct 2013 13:02:02 +0000 (15:02 +0200)
committerSamir Benmendil <samir.benmendil@gmail.com>
Thu, 3 Oct 2013 13:02:02 +0000 (15:02 +0200)
zshrc

diff --git a/zshrc b/zshrc
index 880805cca3c33be27e8a364e34de7fb9826ff99d..dd2e117ec2464f95c9bdc01391fa2a255bb7cdd8 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -57,6 +57,8 @@ hash -d UniMaas=~/dropbox/Documents/UniMaas
 export _gamedir=/mnt/Skaro/Games/Linux/HumbleBundle
 
 # ros
-source /opt/ros/groovy/setup.zsh
-export ROS_WORKSPACE=~/src/ros
-export ROS_OS_OVERRIDE=arch
+if [[ -f "/opt/ros/groovy/setup.zsh" ]]; then
+    source /opt/ros/groovy/setup.zsh
+    export ROS_WORKSPACE=~/src/ros
+    export ROS_OS_OVERRIDE=arch
+fi