From: Samir Benmendil Date: Thu, 3 Oct 2013 13:02:02 +0000 (+0200) Subject: source ros only if it's installed X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/cb52b2fa1e797016a51411f9185722e1e74789dd source ros only if it's installed --- diff --git a/zshrc b/zshrc index 880805c..dd2e117 100644 --- 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