1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

zsh: fix trailing slash breaking zshenv

A trailing slash in user.users.<user>.home broke zshenv setup in Home
Manager. The generated ~/.zshenv ended up sourcing itself, causing an
infinite loop at shell startup.
This commit is contained in:
Landon Buttars 2025-09-19 20:52:13 -06:00
parent 55b1f5b7b1
commit 804f9feaa0

View file

@ -3,7 +3,7 @@ let
cfg = config.programs.zsh;
in
rec {
homeDir = config.home.homeDirectory;
homeDir = cleanPathStr config.home.homeDirectory;
/*
Escape a path string for shell usage and remove trailing slashes.