From fc77a8ce0f60928bf3d55f6e69fd112794acfbce Mon Sep 17 00:00:00 2001 From: Ivan Povalyukhin Date: Wed, 25 Mar 2015 21:40:04 -0700 Subject: [PATCH] fix textmate path on some platforms --- plugins/available/textmate.plugin.bash | 5 +++++ template/bash_profile.template.bash | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 plugins/available/textmate.plugin.bash diff --git a/plugins/available/textmate.plugin.bash b/plugins/available/textmate.plugin.bash new file mode 100644 index 00000000..ae04c80c --- /dev/null +++ b/plugins/available/textmate.plugin.bash @@ -0,0 +1,5 @@ +cite about-plugin +about-plugin 'set textmate as a default editor' + +export EDITOR="$(which mate) -w" +export GIT_EDITOR=$EDITOR diff --git a/template/bash_profile.template.bash b/template/bash_profile.template.bash index be218ee1..472201b0 100755 --- a/template/bash_profile.template.bash +++ b/template/bash_profile.template.bash @@ -16,10 +16,6 @@ export BASH_IT_THEME='bobby' # Your place for hosting Git repos. I use this for private repos. export GIT_HOSTING='git@git.domain.com' -# Set my editor and git editor -export EDITOR="/usr/bin/mate -w" -export GIT_EDITOR='/usr/bin/mate -w' - # Set the path nginx export NGINX_PATH='/opt/nginx'