1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-15 23:59:45 +01:00

programs.zsh: generate export statements in zsh syntax

Use the new module lib.zsh to generate export statements in zsh syntax, using
zsh arrays for lists.

Being a zsh script, this seems more intuitive for .zshrc
This commit is contained in:
Marcial Gaißert 2018-12-13 15:23:27 +01:00 committed by Nikita Uvarov
parent 62eb7ebeba
commit 6b5e0efd1e
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -11,7 +11,7 @@ let
pluginsDir = if cfg.dotDir != null then
relToDotDir "plugins" else ".zsh/plugins";
envVarsStr = config.lib.shell.exportAll cfg.sessionVariables;
envVarsStr = config.lib.zsh.exportAll cfg.sessionVariables;
aliasesStr = concatStringsSep "\n" (
mapAttrsToList (k: v: "alias ${k}='${v}'") cfg.shellAliases