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