Update shell prompt
This commit is contained in:
parent
a21a4d5e26
commit
f25e2d197e
1 changed files with 21 additions and 4 deletions
|
@ -69,13 +69,30 @@ in with lib; {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
add_newline = false;
|
||||||
format = ''
|
format = ''
|
||||||
┌── $directory$git_branch$cmd_duration$sudo
|
$username at $hostname // $directory$git_branch $character
|
||||||
└ $character
|
|
||||||
'';
|
'';
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[>](bold green)";
|
success_symbol = "[>](bold #1fed71)";
|
||||||
error_symbol = "[✖](bold red)";
|
error_symbol = "[!](bold #ff8426)";
|
||||||
|
};
|
||||||
|
username = {
|
||||||
|
show_always = true;
|
||||||
|
format = "[$user]($style)";
|
||||||
|
style_user = "bold #40de46";
|
||||||
|
};
|
||||||
|
hostname = {
|
||||||
|
ssh_only = false;
|
||||||
|
format = "[$hostname]($style)";
|
||||||
|
style = "bold #1fb8ff";
|
||||||
|
};
|
||||||
|
directory = {
|
||||||
|
format = "[$path]($style)";
|
||||||
|
};
|
||||||
|
git_branch = {
|
||||||
|
format = " :: [$symbol$branch]($style)";
|
||||||
|
style = "bold #c745ff";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue