Skip to content

Commit

Permalink
added starship
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Oct 25, 2023
1 parent a140669 commit be3b86c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
./shell.nix
./tools.nix
./git.nix
./starship.nix
];
}
29 changes: 29 additions & 0 deletions home/core/starship.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{...}: {
programs.starship = {
enable = true;

enableBashIntegration = true;
enableFishIntegration = true;

settings = {
character = {
success_symbol = "[›](bold green)";
error_symbol = "[›](bold red)";
};

git_branch = {
format = "[$symbol$branch]($style) ";
symbol = "";
style = "bold yellow";
};

hostname = {
ssh_only = false;
format = "[$hostname]($style)";
trim_at = "-";
style = "bold dimmed white";
disabled = true;
};
};
};
}

0 comments on commit be3b86c

Please sign in to comment.