From f2721dff3a45186f2693a161a5f32577e7de3e26 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Sep 2025 22:29:28 +0000 Subject: [PATCH 1/2] chore(deps): update submodules/dotfiles digest to aabca06 --- submodules/dotfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/dotfiles b/submodules/dotfiles index 5d224bb..aabca06 160000 --- a/submodules/dotfiles +++ b/submodules/dotfiles @@ -1 +1 @@ -Subproject commit 5d224bb3895a9295fb6d800a3c1f1a4d1f071786 +Subproject commit aabca06c59ee87ef15f78a801f6e8ecbeb7fca87 From 00b5cc5f83113584ac48b1d70a418fbbb6856f6c Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Thu, 18 Sep 2025 22:29:43 +0000 Subject: [PATCH 2/2] Update files based on submodule changes --- CHANGELOG.md | 6 ++++++ includes/zshrc-files/zshrc-macos.zsh | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cddee8..96dda35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ Entries under the **Removed** section indicate items removed from the entire doc ## Unreleased +## 2025-09-18 + +### Changed + +- changed(alias func): _brew_exec() doesn't output errors when 'brew doctor' is run + ## 2025-08-30 ### Removed diff --git a/includes/zshrc-files/zshrc-macos.zsh b/includes/zshrc-files/zshrc-macos.zsh index d7d1e10..d5b4ff4 100644 --- a/includes/zshrc-files/zshrc-macos.zsh +++ b/includes/zshrc-files/zshrc-macos.zsh @@ -63,19 +63,19 @@ zsh_completion="${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completio #### # Helper to run a brew subcommand with a nice, consistent, colored log line. # -# NOTE: This function is written in zsh, rather than bash. I'm not as familiar with zsh -# compared to bash, so this function was written with the help of ChatGPT. +# NOTE: No error will be printed when running `brew doctor`, as it often returns non-zero +# exit codes even when everything is fine. _brew_exec() { - local subcmd=$1; shift - # Header - print -P -- "%F{blue}%B[INFO]%b%f %F{8}Executing:%f %F{8}$%f %B%F{white}brew%f%b %F{cyan}${subcmd}%f${*:+ ${*}}" - # Run and report - if brew "$subcmd" "$@"; then + local sub_cmd=$1; shift + print -P -- "%F{blue}%B[INFO]%b%f %F{8}Executing:%f %F{8}$%f %B%F{white}brew%f%b %F{cyan}${sub_cmd}%f${*:+ ${*}}" + if brew "$sub_cmd" "$@"; then print -P -- "%F{green}[OK]%f" else - local ec=$? - print -P -- "%F{red}[ERROR]%f exit %B${ec}%b" - return $ec + local error_code=$? + if [[ $sub_cmd != "doctor" ]]; then + print -P -- "%F{red}[ERROR]%f exit %B${error_code}%b" + fi + return $error_code fi }