zsh: only change theme if darkman is available
This commit is contained in:
parent
3ec5ea5728
commit
99a78a8a64
1 changed files with 7 additions and 4 deletions
|
@ -91,11 +91,14 @@ let
|
|||
darkmode
|
||||
}
|
||||
|
||||
if [ "$(darkman get)" = "dark" ]
|
||||
if type darkman >/dev/null
|
||||
then
|
||||
darkmode
|
||||
else
|
||||
lightmode
|
||||
if [ "$(darkman get)" = "dark" ]
|
||||
then
|
||||
darkmode
|
||||
else
|
||||
lightmode
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
sessionVariables = { DEFAULT_USER = "charlotte"; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue