Added check for presence of textmate executable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user