Housekeeping

This commit is contained in:
SebastianStork 2025-06-04 21:55:01 +02:00
parent 393be96558
commit f47534c8f3
9 changed files with 11 additions and 11 deletions

View file

@ -0,0 +1,34 @@
{
config,
pkgs,
lib,
...
}:
{
config = lib.mkIf config.custom.programs.shell.zsh.enable {
programs.zsh = {
plugins = [
{
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
{
name = "powerlevel10k-config";
src = ./.;
file = "p10k.zsh";
}
];
initContent = lib.mkBefore ''
(( ''${+commands[direnv]} )) && emulate zsh -c "$(direnv export zsh)"
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
fi
(( ''${+commands[direnv]} )) && emulate zsh -c "$(direnv hook zsh)"
'';
};
};
}