1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01: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}
'';