feat(home/starship): Add hostname to prompt

This commit is contained in:
punkfairie 2025-03-09 10:44:17 -07:00
parent 82d6747d8b
commit 6a9d7347a0
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6

View file

@ -14,6 +14,7 @@ in {
in {
format = mkDefault (lib.concatStrings [
"$username"
"$hostname"
"$directory"
"$nix_shell"
"$git_branch"
@ -38,12 +39,18 @@ in {
username = {
disabled = mkDefault false;
format = mkDefault (mkFormat " 󰧱 $user ");
format = mkDefault " [](fg:${base02})[ 󰧱 $user@]($style)";
show_always = mkDefault true;
style_root = mkDefault "bg:${base02} fg:${base0D}";
style_user = mkDefault "bg:${base02} fg:${base0D}";
};
hostname = {
ssh_only = mkDefault false;
format = mkDefault "[$hostname ]($style)[](fg:${base02}) ";
style = mkDefault "bg:${base02} fg:${base0D}";
};
directory = {
format = mkDefault (mkFormat " $path ");
style = mkDefault "bg:${base02} fg:${base0B}";
@ -67,7 +74,7 @@ in {
git_status = {
disabled = mkDefault false;
style = mkDefault "bg:${base02} fg:${base08}";
format = mkDefault (mkFormat " $all_status$ahead_behind");
format = mkDefault (mkFormat "$all_status$ahead_behind");
up_to_date = mkDefault "[ ](bg:${base02} fg:${base0D})";
untracked = mkDefault "[?\\($count\\)](bg:${base02} fg:${base09})";
stashed = mkDefault "[\\$](bg:${base02} fg:${base0D})";