Sat Jun 22 09:48:46 PM CEST 2024

This commit is contained in:
Thomas Avé 2024-06-22 21:48:46 +02:00
parent a87eec200e
commit 23ae2bbfb2
1 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,18 @@
}; };
}; };
}; };
home.file."${config.xdg.configHome}/direnv/direnvrc".text = ''
: "''${XDG_CACHE_HOME:="''${HOME}/.cache"}"
declare -A direnv_layout_dirs
direnv_layout_dir() {
local hash path
echo "''${direnv_layout_dirs[$PWD]:=$(
hash="$(sha1sum - <<< "$PWD" | head -c40)"
path="''${PWD//[^a-zA-Z0-9]/-}"
echo "''${XDG_CACHE_HOME}/direnv/layouts/''${hash}''${path}"
)}"
}
'';
programs.command-not-found.enable = true; programs.command-not-found.enable = true;
programs.zoxide = { programs.zoxide = {
enable = true; enable = true;