utils: prefer BBEdit over TextWrangler

This commit is contained in:
EricFromCanada 2022-08-31 15:26:58 -04:00
parent 0cf999eee9
commit 76199ddd72
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

View File

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