zsh: only change theme if darkman is available

This commit is contained in:
Charlotte Van Petegem 2024-01-08 20:14:50 +01:00
parent 3ec5ea5728
commit 99a78a8a64
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -91,12 +91,15 @@ let
darkmode darkmode
} }
if type darkman >/dev/null
then
if [ "$(darkman get)" = "dark" ] if [ "$(darkman get)" = "dark" ]
then then
darkmode darkmode
else else
lightmode lightmode
fi fi
fi
''; '';
sessionVariables = { DEFAULT_USER = "charlotte"; }; sessionVariables = { DEFAULT_USER = "charlotte"; };
oh-my-zsh = { oh-my-zsh = {