feat: add starship to zsh :3
This commit is contained in:
parent
6b343b4ff8
commit
b356565844
1 changed files with 59 additions and 0 deletions
59
home/zsh.nix
59
home/zsh.nix
|
|
@ -18,6 +18,7 @@
|
||||||
history = {
|
history = {
|
||||||
append = true;
|
append = true;
|
||||||
expireDuplicatesFirst = true;
|
expireDuplicatesFirst = true;
|
||||||
|
size = 2500;
|
||||||
};
|
};
|
||||||
|
|
||||||
syntaxHighlighting = {
|
syntaxHighlighting = {
|
||||||
|
|
@ -42,4 +43,62 @@
|
||||||
theme = "agnoster";
|
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)\]'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue