feat: add starship to zsh :3

This commit is contained in:
EinEtwas 2024-10-22 00:09:22 +02:00
parent 6b343b4ff8
commit b356565844

View file

@ -18,6 +18,7 @@
history = {
append = true;
expireDuplicatesFirst = true;
size = 2500;
};
syntaxHighlighting = {
@ -42,4 +43,62 @@
theme = "agnoster";
};
};
programs.starship = {
enable = true;
enableZshIntegration = true;
enableBashIntegration = true;
settings = {
add_newline = false;
command_timeout = 1000;
right_format = "$time";
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
vicmd_symbol = "[](bold yellow)";
};
username = {
show_always = true;
format = ''\[[$user]($style)'';
};
hostname = {
ssh_only = false;
format = ''@[$ssh_symbol$hostname]($style)\]'';
};
directory = {
truncation_length = 6;
format = ''\[[$path]($style)[$read_only]($read_only_style)\]'';
read_only = " ";
};
git_branch = {
symbol = " ";
format = ''\[[$symbol$branch]($style)\]'';
};
git_status = {
format = ''([\[$all_status$ahead_behind\]]($style))'';
};
nix_shell = {
symbol = "󱄅 ";
format = ''\[[$symbol$state(\($name\))]($style)\]'';
};
cmd_duration = {
format = ''\[[󰅐 $duration]($style)\]'';
};
time = {
disabled = false;
format = ''\[[$time]($style)\]'';
};
};
};
}