1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

add fallback option for os

This commit is contained in:
juan 2022-05-15 21:54:53 +08:00
parent 377024a013
commit f1124f82ba

2
.zshrc
View File

@ -1,6 +1,6 @@
cat ~/.config/splash 2> /dev/null || true cat ~/.config/splash 2> /dev/null || true
echo 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 echo '\033[0;34m @ '$HOST
#Install zinit if no zinit is present #Install zinit if no zinit is present