zsh: move aliases definitions after initExtra

Same motivation as in https://github.com/NixOS/nixpkgs/pull/28378.
zsh.initExtra parameter can be used by external modules which can
redefine user aliases. This change will give user-defined aliases
the highest priority.
This commit is contained in:
Nikita Uvarov 2017-09-07 22:21:00 +02:00
parent 29d5f5d760
commit 379e2c694b
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96
2 changed files with 15 additions and 2 deletions

View file

@ -241,9 +241,9 @@ in
source "$HOME/.zsh/plugins/${plugin.name}/${plugin.file}"
'') cfg.plugins)}
${aliasesStr}
${cfg.initExtra}
${aliasesStr}
'';
})
(mkIf cfg.oh-my-zsh.enable {