blob: 4996bdcfb81e607b76b7834fefd1669001892243 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ config, lib, ... }:
let
cfg = config.szpont.hm.shell.starship;
in
{
options.szpont.hm.shell.starship.enable = lib.mkEnableOption "Starship prompt";
config = lib.mkIf cfg.enable {
programs.starship = {
enable = true;
enableFishIntegration = true;
settings = {
add_newline = true;
# format = lib.concatStrings [
# "$hostname"
# "$directory"
# "$git_branch"
# "$git_status"
# "$nix_shell"
# "$python"
# "$rust"
# "$character"
# ];
directory = {
truncate_to_repo = false;
read_only = "";
};
hostname.format = "[$hostname ]($style) ";
python = { symbol = ""; format = "[$symbol ]($style)"; };
rust = { symbol = ""; };
nix_shell.format = "[$symbol$state ]($style)";
git_status = {
conflicted = "";
ahead = "";
behind = "";
diverged = "";
renamed = "";
deleted = "x";
};
};
};
};
}
|