This commit is contained in:
2026-06-11 00:07:50 +01:00
parent d8f593c9f0
commit 8ec7b3429f
2 changed files with 58 additions and 16 deletions
+1 -16
View File
@@ -14,8 +14,6 @@
homeManager =
{ pkgs, ... }:
{
imports = [ inputs.direnv-instant.homeModules.direnv-instant ];
programs.direnv-instant.enable = true;
home.shell.enableFishIntegration = true;
home.packages = [
pkgs.nix-output-monitor
@@ -35,19 +33,6 @@
set -gx COLORTERM truecolor
end
'';
interactiveShellInit = ''
# direnv-instant registers its hook on both fish_prompt and PWD,
# causing double execution on every cd. Re-register on PWD only.
functions --erase _direnv_hook
function _direnv_hook --on-variable PWD
set -gx DIRENV_INSTANT_SHELL fish
set -gx DIRENV_INSTANT_SHELL_PID $fish_pid
if test "$DIRENV_INSTANT_USE_CACHE" != 0 -a -n "$__DIRENV_INSTANT_ENV_FILE" -a -f "$__DIRENV_INSTANT_ENV_FILE"
source "$__DIRENV_INSTANT_ENV_FILE"
end
direnv-instant start | source
end
'';
plugins = [
{
name = "bobthefish";
@@ -69,7 +54,7 @@
};
direnv = {
enable = true;
enableFishIntegration = false;
enableFishIntegration = true;
};
};
};