1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-06 09:01:04 +01:00

zsh: fix concatenation of aliases and global aliases (#6698)

Accidentally bump the lines against each other. Adding a newline to move
global aliases to another line when you have both.
This commit is contained in:
Austin Horstman 2025-03-24 21:56:51 -05:00 committed by GitHub
parent c4d5d72805
commit 869f2ec2ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 62 additions and 8 deletions

View file

@ -732,10 +732,11 @@ in
(lib.mkIf (aliasesStr != "" || cfg.shellGlobalAliases != {}) (mkOrder 1100
((optionalString (aliasesStr != "") aliasesStr) +
(optionalString (cfg.shellGlobalAliases != {})
(optionalString (cfg.shellGlobalAliases != {})
(optionalString (cfg.shellAliases != {}) "\n" +
(concatStringsSep "\n" (lib.mapAttrsToList
(k: v: "alias -g -- ${lib.escapeShellArg k}=${lib.escapeShellArg v}")
cfg.shellGlobalAliases))))))
cfg.shellGlobalAliases)))))))
(lib.mkIf (dirHashesStr != "") (mkOrder 1150 ''
# Named Directory Hashes