mirror of
https://github.com/larstvei/nix-config.git
synced 2024-11-26 08:58:31 +00:00
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:
parent
de6f0c5ca5
commit
0c272b8de2
@ -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)";
|
||||
|
Loading…
Reference in New Issue
Block a user