From f1124f82ba25fd9bccdde9292a8cb5d44a5e67e5 Mon Sep 17 00:00:00 2001 From: juan Date: Sun, 15 May 2022 21:54:53 +0800 Subject: [PATCH] add fallback option for os --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 218476b..f3474a6 100644 --- a/.zshrc +++ b/.zshrc @@ -1,6 +1,6 @@ cat ~/.config/splash 2> /dev/null || true echo -echo '\033[0;35m /w '$(awk -F "=" '/^NAME/ {print $2}' < /etc/os-release ) +echo '\033[0;35m /w '$(awk -F "=" '/^NAME/ {print $2}' 2> /dev/null < /etc/os-release || uname -o) echo '\033[0;34m @ '$HOST #Install zinit if no zinit is present