From e1700178bd6a58aec56f1e534269c03f7497a4c6 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 1 Feb 2023 13:51:18 +0100 Subject: [PATCH] brew.sh: add missing dev-cmd aliases --- Library/Homebrew/brew.sh | 4 ++++ Library/Homebrew/commands.rb | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 537c9c6dc4f91..4e9188be3713d 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -689,6 +689,8 @@ done HOMEBREW_ARG_COUNT="$#" HOMEBREW_COMMAND="$1" shift +# If you are going to change anything in below case statement, +# be sure to also update HOMEBREW_INTERNAL_COMMAND_ALIASES hash in commands.rb case "${HOMEBREW_COMMAND}" in ls) HOMEBREW_COMMAND="list" ;; homepage) HOMEBREW_COMMAND="home" ;; @@ -705,6 +707,8 @@ case "${HOMEBREW_COMMAND}" in environment) HOMEBREW_COMMAND="--env" ;; --config) HOMEBREW_COMMAND="config" ;; -v) HOMEBREW_COMMAND="--version" ;; + lc) HOMEBREW_COMMAND="livecheck" ;; + tc) HOMEBREW_COMMAND="typecheck" ;; esac # Set HOMEBREW_DEV_CMD_RUN for users who have run a development command. diff --git a/Library/Homebrew/commands.rb b/Library/Homebrew/commands.rb index 383c5cb768481..188ac295e2b96 100644 --- a/Library/Homebrew/commands.rb +++ b/Library/Homebrew/commands.rb @@ -11,6 +11,8 @@ module Commands HOMEBREW_CMD_PATH = (HOMEBREW_LIBRARY_PATH/"cmd").freeze HOMEBREW_DEV_CMD_PATH = (HOMEBREW_LIBRARY_PATH/"dev-cmd").freeze + # If you are going to change anything in below hash, + # be sure to also update appropriate case statement in brew.sh HOMEBREW_INTERNAL_COMMAND_ALIASES = { "ls" => "list", "homepage" => "home",