53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
|
||
|
home-manager.users.${config.user} = {
|
||
|
programs.starship = {
|
||
|
|
||
|
enable = true;
|
||
|
|
||
|
settings = {
|
||
|
format = lib.concatStrings [
|
||
|
"╭─ "
|
||
|
"$username"
|
||
|
"$hostname"
|
||
|
"$git_branch"
|
||
|
"$directory"
|
||
|
"$line_break"
|
||
|
"╰─ "
|
||
|
];
|
||
|
|
||
|
username = {
|
||
|
style_user = "bold purple";
|
||
|
style_root = "bold purple";
|
||
|
format = "[$user]($style) ";
|
||
|
disabled = false;
|
||
|
show_always = true;
|
||
|
};
|
||
|
|
||
|
hostname = {
|
||
|
ssh_only = false;
|
||
|
format = "on [$hostname](bold blue) ";
|
||
|
disabled = false;
|
||
|
};
|
||
|
|
||
|
directory = {
|
||
|
format = "[$path]($style)[$read_only]($read_only_style) ";
|
||
|
truncation_length = -1;
|
||
|
truncate_to_repo = false;
|
||
|
truncation_symbol = "…/";
|
||
|
};
|
||
|
|
||
|
git_branch = {
|
||
|
style = "bold fg:97";
|
||
|
format = "at [$symbol$branch(:$remote_branch)]($style) ";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
};
|
||
|
}
|