-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathstarship.nix
96 lines (84 loc) · 2.33 KB
/
starship.nix
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{ lib, inputs, ... }:
{
programs.starship = {
enable = false;
enableBashIntegration = true;
enableZshIntegration = true;
enableNushellIntegration = true;
settings = {
format = lib.concatStrings [
"[](color_orange)"
"$os"
"[](bg:color_yellow fg:color_orange)"
"$directory"
"[](fg:color_yellow bg:color_aqua)"
"$git_branch"
"$git_status"
"[](fg:color_aqua bg:color_blue)"
"$nix_shell"
"[](fg:color_blue bg:color_bg3)"
"$cmd_duration"
"[](fg:color_bg3) "
];
palette = "gruvbox_dark";
palettes.gruvbox_dark = {
color_fg0 = "#fbf1c7";
color_bg1 = "#3c3836";
color_bg3 = "#665c54";
color_blue = "#458588";
color_aqua = "#689d6a";
color_green = "#98971a";
color_orange = "#d65d0e";
color_purple = "#b16286";
color_red = "#cc241d";
color_yellow = "#d79921";
};
os = {
disabled = false;
style = "bg:color_orange bold fg:color_fg0";
symbols = {
NixOS = " ";
};
};
directory = {
style = "bold fg:color_fg0 bg:color_yellow";
format = "[ $path ]($style)";
truncation_length = 3;
};
git_branch = {
symbol = "";
style = "bg:color_aqua";
format = "[[ $symbol $branch ](bold fg:color_fg0 bg:color_aqua)]($style)";
};
git_status = {
style = "bg:color_aqua bold fg:color_fg0";
format = "[$all_status$ahead_behind]($style)";
};
nix_shell = {
format = "[ via nix $name ]($style)";
style = "bg:color_blue bold fg:color_fg0";
};
time = {
disabled = false;
time_format = "%R";
style = "bg:color_bg1";
format = "[[ $time ](fg:color_fg0 bg:color_bg1)]($style)";
};
cmd_duration = {
format = "[ $duration ]($style)";
disabled = false;
style = "bg:color_bg3 fg:color_fg0";
show_notifications = false;
min_time_to_notify = 60000;
};
line_break = {
disabled = false;
};
character = {
disabled = false;
success_symbol = "[ ](bold fg:color_green)";
error_symbol = "[ ](bold fg:color_red)";
};
};
};
}