From 458fc5e98c983d5f83a1045112394f42e35d0ea8 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Fri, 21 Aug 2026 10:51:28 +0200 Subject: [PATCH] zsh: use hostnamectl instead of hostname hostname is not available by default on a new arch install --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 629f710..4b18060 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -100,7 +100,7 @@ then COLOR="red" else colors=(blue green cyan magenta yellow) - color_index=$(($(hostname | sum | cut -f1 -d" ") % $#colors + 1)) + color_index=$(($(hostnamectl hostname | sum | cut -f1 -d" ") % $#colors + 1)) COLOR=$colors[$color_index] fi