Fix direnv setup

Somehow, I had setup direnv totally wrong. It worked, but was extremely slow.
Now it's just nice.
This commit is contained in:
larstvei 2024-03-28 02:10:54 +01:00
parent de6f0c5ca5
commit 0c272b8de2

View File

@ -137,17 +137,26 @@
shellInit = ''
set PATH "$PATH:/usr/local/texlive/2022/bin/universal-darwin/"
export DIRENV_LOG_FORMAT=
if test "$TERM" != "dumb"
track_directories
end
direnv reload 2> /dev/null
set -gx DIRENV_LOG_FORMAT ""
direnv hook fish | source
'';
};
starship = {
enable = true;
settings = {
custom = {
direnv = {
format = "[\\[direnv\\]]($style) ";
style = "fg:yellow dimmed";
when = "env | grep -E '^DIRENV_FILE='";
};
};
character = {
success_symbol = "[λ](bold green)";
error_symbol = "[λ](bold red)";