Use Starship prompt

This commit is contained in:
Paul-Henri Froidmont 2023-09-29 03:41:56 +02:00
parent 0e7550da06
commit a387bbd157
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 11 additions and 1743 deletions

File diff suppressed because it is too large Load diff

View file

@ -24,7 +24,6 @@ in {
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
@ -39,15 +38,6 @@ in {
plugins = [ "git" "terraform" "systemd" ];
};
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;
@ -58,6 +48,17 @@ in {
}
];
};
programs.starship = {
enable = true;
enableZshIntegration = true;
settings = {
add_newline = true;
scala = { symbol = " "; };
terraform = { symbol = "󱁢 "; };
nix_shell = { symbol = "󱄅 "; };
nodejs = { symbol = " "; };
};
};
};
};
}