Merge pull request #526 from nwinkler/textmate-check

Added check for presence of textmate executable
pull/527/head
Nils Winkler 2015-07-20 17:47:00 +02:00
commit 00a620ce65
1 changed files with 4 additions and 2 deletions

View File

@ -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