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