Use p10k instead of oh-my-zsh theme
This commit is contained in:
parent
cb6c495c3f
commit
fd0aa3e734
3 changed files with 1747 additions and 4 deletions
|
|
@ -49,10 +49,10 @@
|
||||||
fonts = {
|
fonts = {
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
corefonts # Microsoft free fonts
|
corefonts # Microsoft free fonts
|
||||||
(nerdfonts.override { fonts = [ "Meslo" ]; })
|
meslo-lgs-nf
|
||||||
];
|
];
|
||||||
fontconfig.defaultFonts = {
|
fontconfig.defaultFonts = {
|
||||||
monospace = [ "MesloLGMDZ Nerd Font Mono" ];
|
monospace = [ "MesloLGS NF" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
1733
users/froidmpa/p10k.zsh
Normal file
1733
users/froidmpa/p10k.zsh
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -11,6 +11,7 @@
|
||||||
enableAutosuggestions = true;
|
enableAutosuggestions = true;
|
||||||
enableSyntaxHighlighting = true;
|
enableSyntaxHighlighting = true;
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
|
source ${./p10k.zsh}
|
||||||
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
||||||
zle -N up-line-or-beginning-search
|
zle -N up-line-or-beginning-search
|
||||||
zle -N down-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[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
|
||||||
[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-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 = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
"git"
|
"git"
|
||||||
"terraform"
|
"terraform"
|
||||||
|
"systemd"
|
||||||
];
|
];
|
||||||
theme = "robbyrussell";
|
|
||||||
};
|
};
|
||||||
plugins = [
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "powerlevel10k";
|
||||||
|
src = pkgs.zsh-powerlevel10k;
|
||||||
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "powerlevel10k-config";
|
||||||
|
src = ./p10k.zsh;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "nix-zsh-completions";
|
name = "nix-zsh-completions";
|
||||||
src = pkgs.nix-zsh-completions;
|
src = pkgs.nix-zsh-completions;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue