-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstarship.nix
123 lines (123 loc) · 2.18 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{lib, ...}:
with lib; {
enable = true;
settings = {
add_newline = true;
directory.truncate_to_repo = false;
kubernetes = {
disabled = false;
format = "with [$symbol$context( \($namespace\))]($style) ";
symbol = "";
contexts = [
{
context_pattern = "gke_.*_(?P<cluster>[\\w-]+)";
context_alias = "gke-$cluster";
}
];
};
gcloud = {
disabled = true;
format = "[\\($symbol$account(@$domain)(\($region\))\\)]($style) ";
};
character = {
success_symbol = "#";
error_symbol = "#";
};
time = {
disabled = false;
format = "[$time]($style) ";
};
status.disabled = false;
line_break.disabled = true;
format = concatStringsSep "" [
"$time"
"$directory"
"$username"
"$hostname"
"$localip"
"$shlvl"
"$singularity"
"$kubernetes"
"$vcsh"
"$fossil_branch"
"$fossil_metrics"
"$git_branch"
"$git_commit"
"$git_state"
"$git_metrics"
"$git_status"
"$hg_branch"
"$pijul_channel"
"$docker_context"
"$package"
"$c"
"$cmake"
"$cobol"
"$daml"
"$dart"
"$deno"
"$dotnet"
"$elixir"
"$elm"
"$erlang"
"$fennel"
"$golang"
"$guix_shell"
"$haskell"
"$haxe"
"$helm"
"$java"
"$julia"
"$kotlin"
"$gradle"
"$lua"
"$nim"
"$nodejs"
"$ocaml"
"$opa"
"$perl"
"$php"
"$pulumi"
"$purescript"
"$python"
"$raku"
"$rlang"
"$red"
"$ruby"
"$rust"
"$scala"
"$solidity"
"$swift"
"$terraform"
"$typst"
"$vlang"
"$vagrant"
"$zig"
"$buf"
"$nix_shell"
"$conda"
"$meson"
"$spack"
"$memory_usage"
"$aws"
"$gcloud"
"$openstack"
"$azure"
"$direnv"
"$env_var"
"$crystal"
"$custom"
"$cmd_duration"
"$line_break"
"$jobs"
"$battery"
"$status"
"$os"
"$container"
"$shell"
"\n"
"$sudo"
"$character"
];
};
}