Skip to content

Commit 90e4f21

Browse files
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.
1 parent 55b1f5b commit 90e4f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/programs/zsh/lib.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let
33
cfg = config.programs.zsh;
44
in
55
rec {
6-
homeDir = config.home.homeDirectory;
6+
homeDir = cleanPathStr config.home.homeDirectory;
77

88
/*
99
Escape a path string for shell usage and remove trailing slashes.

0 commit comments

Comments
 (0)