Merge pull request #13785 from EricFromCanada/utils-edit-bbedit

utils: prefer BBEdit over TextWrangler
This commit is contained in:
Mike McQuaid 2022-09-01 11:04:03 +01:00 committed by GitHub
commit 10edb8c22c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,8 +364,8 @@ module Kernel
editor = Homebrew::EnvConfig.editor
return editor if editor
# Find Atom, Sublime Text, VS Code, Textmate, BBEdit / TextWrangler, or vim
editor = %w[atom subl code mate edit vim].find do |candidate|
# Find Atom, Sublime Text, VS Code, Textmate, BBEdit, or vim
editor = %w[atom subl code mate bbedit vim].find do |candidate|
candidate if which(candidate, ORIGINAL_PATHS)
end
editor ||= "vim"