Added check for presence of textmate executable

pull/526/head
Nils Winkler 2015-07-20 17:40:00 +02:00
parent 4b66fec9da
commit cdfe76620a
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
cite about-plugin cite about-plugin
about-plugin 'set textmate as a default editor' about-plugin 'set textmate as a default editor'
export EDITOR="$(which mate) -w" if $(command -v mate &> /dev/null) ; then
export GIT_EDITOR=$EDITOR export EDITOR="$(which mate) -w"
export GIT_EDITOR=$EDITOR
fi