1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-12 01:33:40 +02:00

zsh: move env variables setting before oh-my-zsh

Fixes #207.
This commit is contained in:
Nikita Uvarov 2018-02-10 19:21:25 +01:00
parent 9ea353569a
commit afa865587e
No known key found for this signature in database
GPG Key ID: F7A5FB3A7C10EF96

View File

@ -301,6 +301,10 @@ in
"source ${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
}
# Environment variables
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
${envVarsStr}
${optionalString cfg.oh-my-zsh.enable ''
# oh-my-zsh configuration generated by NixOS
${optionalString (cfg.oh-my-zsh.plugins != [])
@ -331,10 +335,6 @@ in
${cfg.initExtra}
# Environment variables
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
${envVarsStr}
# Aliases
${aliasesStr}
'';