Use p10k instead of oh-my-zsh theme

This commit is contained in:
Paul-Henri Froidmont 2022-10-05 20:34:38 +02:00
parent cb6c495c3f
commit fd0aa3e734
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
3 changed files with 1747 additions and 4 deletions

View file

@ -49,10 +49,10 @@
fonts = {
fonts = with pkgs; [
corefonts # Microsoft free fonts
(nerdfonts.override { fonts = [ "Meslo" ]; })
meslo-lgs-nf
];
fontconfig.defaultFonts = {
monospace = [ "MesloLGMDZ Nerd Font Mono" ];
monospace = [ "MesloLGS NF" ];
};
};

1733
users/froidmpa/p10k.zsh Normal file

File diff suppressed because it is too large Load diff

View file

@ -11,6 +11,7 @@
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
initExtra = ''
source ${./p10k.zsh}
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
@ -18,17 +19,26 @@
[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
eval $(thefuck --alias)
eval $(${pkgs.thefuck}/bin/thefuck --alias)
'';
oh-my-zsh = {
enable = true;
plugins = [
"git"
"terraform"
"systemd"
];
theme = "robbyrussell";
};
plugins = [
{
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
{
name = "powerlevel10k-config";
src = ./p10k.zsh;
}
{
name = "nix-zsh-completions";
src = pkgs.nix-zsh-completions;