Skip to content

Commit

Permalink
Allow user to set gitdone-specific editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dstnbrkr committed Mar 8, 2012
1 parent e5641ce commit 417fd62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/gitdone
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 417fd62

Please sign in to comment.