mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Add VS Code to list of fallback editors
This commit is contained in:
parent
9b42a104ee
commit
84a7c2ba7d
@ -363,8 +363,8 @@ module Kernel
|
||||
editor = Homebrew::EnvConfig.editor
|
||||
return editor if editor
|
||||
|
||||
# Find Atom, Sublime Text, Textmate, BBEdit / TextWrangler, or vim
|
||||
editor = %w[atom subl mate edit vim].find do |candidate|
|
||||
# Find Atom, Sublime Text, VS Code, Textmate, BBEdit / TextWrangler, or vim
|
||||
editor = %w[atom subl code mate edit vim].find do |candidate|
|
||||
candidate if which(candidate, ENV["HOMEBREW_PATH"])
|
||||
end
|
||||
editor ||= "vim"
|
||||
|
Loading…
x
Reference in New Issue
Block a user