]> git.rmz.io Git - dotfiles.git/blobdiff - zshrc
source ros only if it's installed
[dotfiles.git] / 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