nixdots/home/programs/terminal/shell/zsh/init.nix

37 lines
717 B
Nix
Raw Normal View History

_:
let
inherit (builtins) readFile;
in
{
config = {
programs.zsh = {
2024-03-26 08:54:24 +00:00
initExtraFirst = ''
# Do this early so anything that relies on $TERM can work properly
${readFile ./rc/fallback_term.zsh}
'';
initExtra = ''
${readFile ./rc/opts.zsh}
${readFile ./rc/prompt.zsh}
${readFile ./rc/keybinds.zsh}
${readFile ./rc/aliases.zsh}
${readFile ./rc/functions.zsh}
2024-03-25 23:38:19 +00:00
${readFile ./rc/misc.zsh}
'';
2024-03-25 22:02:38 +00:00
completionInit = ''
${readFile ./rc/completion.zsh}
'';
profileExtra = ''
${readFile ./rc/profile.zsh}
'';
envExtra = ''
${readFile ./rc/environment.zsh}
'';
};
};
}