-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathstarship.nix
69 lines (61 loc) · 1.56 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
{ lib, ... }:
{
programs = {
starship = {
enable = true;
enableFishIntegration = true;
settings = lib.mkDefault {
format = lib.concatStrings [
"$username"
"$hostname"
"$directory"
"$git_branch"
"$git_state"
"$git_status"
"$cmd_duration"
"$line_break"
"$nix_shell"
"$python"
"$character"
];
directory.style = "blue";
character = {
success_symbol = "[❯](purple)";
error_symbol = "[❯](red)";
vimcmd_symbol = "[❮](green)";
};
git_branch = {
format = "[$branch]($style)";
style = "bright-black";
};
git_status = {
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)";
style = "cyan";
conflicted = "";
untracked = "";
modified = "";
staged = "";
renamed = "";
deleted = "";
stashed = "≡";
};
git_state = {
format = "\([$state( $progress_current/$progress_total)]($style)\)";
style = "bright-black";
};
cmd_duration = {
format = "[$duration]($style)";
style = "yellow";
};
python = {
format = "[$virtualenv]($style) ";
style = "bright-black";
};
nix_shell = {
format = "[$name]($style)";
style = "bright-black";
};
};
};
};
}