need to use functions -q to check existence of the function in fish (#136)

This commit is contained in:
Yamashita, Yuu
2015-12-29 09:03:31 +00:00
parent 0b42fbc27d
commit 13b7dc172a
3 changed files with 7 additions and 7 deletions

View File

@@ -162,7 +162,7 @@ esac
case "${shell}" in
fish )
cat <<EOS
if functions -g deactivate;
if functions -q deactivate;
functions -e deactivate;
end;
EOS