comit
This commit is contained in:
+1
-16
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user