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:
parent
c4d5d72805
commit
869f2ec2ad
3 changed files with 62 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue