formula: remove pwsh from default completion shells

Fixes https://github.com/Homebrew/brew/pull/19407#issuecomment-2694083829
This commit is contained in:
Carlo Cabrera 2025-03-03 20:07:13 +08:00 committed by Carlo Cabrera
parent e401eee162
commit 807709622b
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -2102,7 +2102,7 @@ class Formula
} }
def generate_completions_from_executable(*commands, def generate_completions_from_executable(*commands,
base_name: nil, base_name: nil,
shells: [:bash, :zsh, :fish, :pwsh], shells: [:bash, :zsh, :fish],
shell_parameter_format: nil) shell_parameter_format: nil)
executable = commands.first.to_s executable = commands.first.to_s
base_name ||= File.basename(executable) if executable.start_with?(bin.to_s, sbin.to_s) base_name ||= File.basename(executable) if executable.start_with?(bin.to_s, sbin.to_s)