Files
dotfiles/.config/fish/source/direnv.fish
T
2026-05-10 18:00:11 +03:00

25 lines
763 B
Fish

function __direnv_export_eval --on-event fish_prompt;
"/usr/bin/direnv" export fish | source;
if test "$direnv_fish_mode" != "disable_arrow";
function __direnv_cd_hook --on-variable PWD;
if test "$direnv_fish_mode" = "eval_after_arrow";
set -g __direnv_export_again 0;
else;
"/usr/bin/direnv" export fish | source;
end;
end;
end;
end;
function __direnv_export_eval_2 --on-event fish_preexec;
if set -q __direnv_export_again;
set -e __direnv_export_again;
"/usr/bin/direnv" export fish | source;
echo;
end;
functions --erase __direnv_cd_hook;
end;