Better test for direnv

This commit is contained in:
larstvei 2025-09-07 16:27:45 +02:00
parent 1646e04099
commit 5aaff013da

View File

@ -35,7 +35,7 @@
custom = {
direnv = {
format = "[\\[direnv\\]]($style) ";
when = "env | grep -E '^DIRENV_FILE='";
when = "test -n \"$DIRENV_FILE\"";
};
};
character = {