From 417fd6260ebf6db76a4f1e873ae50a9f7bdd0d8c Mon Sep 17 00:00:00 2001 From: Dustin Barker Date: Wed, 7 Mar 2012 21:15:01 -0800 Subject: [PATCH] Allow user to set gitdone-specific editor --- bin/gitdone | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/gitdone b/bin/gitdone index 5cefa7c..b6c86d1 100755 --- a/bin/gitdone +++ b/bin/gitdone @@ -108,11 +108,11 @@ def commit(task_id) end def edit - editor = ENV['EDITOR'] + editor = ENV['GITDONE_EDITOR'] || ENV['EDITOR'] if editor.nil? || editor.empty? - puts "No EDITOR defined" + puts "No EDITOR or GITDONE_EDITOR defined in environment" else - exec "#{editor} #{TASKS_PATH}" + exec "#{editor} #{local_tasks_file_path}" end end