From c7635e1250359cd0ea7f9a97a5cf6609c749431f Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sat, 11 Apr 2026 01:57:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Justfile=20darwin=20=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=89=8B=E5=8A=A8=E6=8C=87=E5=AE=9A=20host?= =?UTF-8?q?=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Justfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Justfile b/Justfile index b8600fc..f493bc4 100644 --- a/Justfile +++ b/Justfile @@ -2,12 +2,10 @@ default: @just --list -# Rebuild current macOS host (auto-detect from hostname) +# Rebuild macOS host [macos] -darwin: - #!/usr/bin/env bash - attr=$(scutil --get LocalHostName | tr '[:upper:]' '[:lower:]' | sed 's/awesome-//') - sudo darwin-rebuild switch --flake .#"$attr" +darwin host: + sudo darwin-rebuild switch --flake .#{{host}} # Rebuild WSL host [linux]