From 17970a9cf25b1a40787148d03a318bd0b9029cef Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 17:39:33 +0000 Subject: [PATCH] perf: replace \$(uname) == "Darwin" with \$OSTYPE == darwin* in util.zsh Use the ZSH built-in \$OSTYPE variable instead of spawning a subshell for \$(uname), matching the idiomatic pattern used throughout the rest of the codebase. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- zsh/util.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/util.zsh b/zsh/util.zsh index e88001e7..e45a1a6c 100644 --- a/zsh/util.zsh +++ b/zsh/util.zsh @@ -33,7 +33,7 @@ wait-for-url() { if [[ "$http_code" =~ ^[23] ]]; then echo "" echo "$(date '+%H:%M:%S') - $label is UP (HTTP $http_code)" - if [[ "$(uname)" == "Darwin" ]]; then + if [[ "$OSTYPE" == darwin* ]]; then say "${label} is back up" & afplay /System/Library/Sounds/Glass.aiff 2>/dev/null & local escaped_label="${label//\"/\\\"}"