From 5a2b0105ad605d48f8b39a485ccbb32479b67560 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 21 Feb 2013 23:53:39 -0500 Subject: [PATCH] setpath.sh: don't print a warning message on ZSH if Mitsuba has not been built yet --- setpath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setpath.sh b/setpath.sh index dbc63402..034e893d 100755 --- a/setpath.sh +++ b/setpath.sh @@ -24,7 +24,7 @@ else fi unset pyver -if [ "$ZSH_VERSION" ]; then +if [[ ! -z "$ZSH_VERSION" && -d "$mitsuba_plugin_dir" ]]; then # Zsh autocomplete for mitsuba, mtsutil, and mtssrv mitsuba_plugins=$(ls -1 "$mitsuba_plugin_dir" | grep -oE '\w+(\.so|\.dylib)' | sed 's/.so$//;s/.dylib$//') compdef "_arguments '-c[connect to host(s)]:host:_hosts' '-s[connect to list of hosts in a file]:hostfile:_files' '-o[output file]:out:_files' '*:scene:_files -g \*.\(xml\|XML\)'" mitsuba