home: zsh: enforce order of 'initExtra{First,}'

In case I want to add more values to those options, I still want the
_main_ values to be ordered before/after.
This commit is contained in:
Bruno BELANYI 2023-08-13 16:05:27 +01:00
parent 521522e4e9
commit c89dec2a38

View file

@ -56,7 +56,7 @@ in
defaultKeymap = "emacs";
# Make those happen early to avoid doing double the work
initExtraFirst = ''
initExtraFirst = lib.mkBefore ''
${
lib.optionalString cfg.launchTmux ''
# Launch tmux unless already inside one
@ -67,7 +67,7 @@ in
}
'';
initExtra = ''
initExtra = lib.mkAfter ''
source ${./completion-styles.zsh}
source ${./extra-mappings.zsh}
source ${./options.zsh}