This commit is contained in:
Weckyy702
2026-01-12 11:23:10 +01:00
parent 6122cba650
commit 0524def0ad
16 changed files with 154 additions and 41 deletions

View File

@@ -0,0 +1,57 @@
{ config, pkgs, lib, ...}: {
# Required for zsh autocompletion
environment.pathsToLink = [ "/share/zsh" ];
programs.zsh.enable = true;
home-manager.users.weckyy702 = { pkgs, ... }: {
home.shell.enableZshIntegration = true;
programs.zsh = {
enable = true;
package = pkgs.zsh;
enableCompletion = true;
autocd = true;
autosuggestion.enable = true;
plugins = [
{
name = "powerlevel10k-config";
src = ./.;
file="p10k.zsh";
}
{
name = "zsh-powerlevel10k";
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
file="powerlevel10k.zsh-theme";
}
];
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
plugins = [
"git"
"sudo"
];
};
syntaxHighlighting = {
enable = true;
highlighters = [
"brackets"
];
};
initContent = lib.mkBefore ''
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
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
'';
shellAliases = {
#TODO
};
};
};
}

1720
home-manager/zsh/p10k.zsh Normal file

File diff suppressed because it is too large Load Diff