mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
zsh: use shell library
This commit is contained in:
parent
026375da49
commit
2fc1b9b5e0
1 changed files with 1 additions and 7 deletions
|
@ -11,17 +11,11 @@ let
|
|||
pluginsDir = if cfg.dotDir != null then
|
||||
relToDotDir "plugins" else ".zsh/plugins";
|
||||
|
||||
export = n: v: "export ${n}=\"${toString v}\"";
|
||||
|
||||
toEnvVarsStr = vars: concatStringsSep "\n" (
|
||||
mapAttrsToList export vars
|
||||
);
|
||||
|
||||
envVars = cfg.sessionVariables // (
|
||||
if config.home.sessionVariableSetter == "zsh" then config.home.sessionVariables else {}
|
||||
);
|
||||
|
||||
envVarsStr = toEnvVarsStr envVars;
|
||||
envVarsStr = config.lib.shell.exportAll envVars;
|
||||
|
||||
aliasesStr = concatStringsSep "\n" (
|
||||
mapAttrsToList (k: v: "alias ${k}='${v}'") cfg.shellAliases
|
||||
|
|
Loading…
Reference in a new issue