From cdfe76620af519146d4534f6de0ebf5c8eb82b95 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Mon, 20 Jul 2015 17:40:00 +0200 Subject: [PATCH] Added check for presence of textmate executable --- plugins/available/textmate.plugin.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/available/textmate.plugin.bash b/plugins/available/textmate.plugin.bash index ae04c80c..e3538c1e 100644 --- a/plugins/available/textmate.plugin.bash +++ b/plugins/available/textmate.plugin.bash @@ -1,5 +1,7 @@ cite about-plugin about-plugin 'set textmate as a default editor' -export EDITOR="$(which mate) -w" -export GIT_EDITOR=$EDITOR +if $(command -v mate &> /dev/null) ; then + export EDITOR="$(which mate) -w" + export GIT_EDITOR=$EDITOR +fi