summaryrefslogtreecommitdiffstats
path: root/common/commandline
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2023-02-05 20:03:34 +0100
committerMinijackson <minijackson@riseup.net>2023-02-05 20:03:34 +0100
commit90e3482bb2e8e90a8ad23a29deecc6060c44ddde (patch)
tree282ca7edb10c3be19a2087dffc8b30c3a7108377 /common/commandline
parenta97959badd758df26329fd269a2e9c471bba54a4 (diff)
downloadnixos-config-reborn-90e3482bb2e8e90a8ad23a29deecc6060c44ddde.tar.gz
nixos-config-reborn-90e3482bb2e8e90a8ad23a29deecc6060c44ddde.zip
starship: better, plain-text configuration
Diffstat (limited to 'common/commandline')
-rw-r--r--common/commandline/starship-plain-text-symbols.toml143
-rw-r--r--common/commandline/starship.nix26
2 files changed, 169 insertions, 0 deletions
diff --git a/common/commandline/starship-plain-text-symbols.toml b/common/commandline/starship-plain-text-symbols.toml
new file mode 100644
index 0000000..d152423
--- /dev/null
+++ b/common/commandline/starship-plain-text-symbols.toml
@@ -0,0 +1,143 @@
1[character]
2success_symbol = "[>](bold green)"
3error_symbol = "[x](bold red)"
4vimcmd_symbol = "[<](bold green)"
5
6[git_commit]
7tag_symbol = " tag "
8
9[git_status]
10ahead = ">"
11behind = "<"
12diverged = "<>"
13renamed = "r"
14deleted = "x"
15
16[aws]
17symbol = "aws "
18
19[bun]
20symbol = "bun "
21
22[c]
23symbol = "C "
24
25[cobol]
26symbol = "cobol "
27
28[conda]
29symbol = "conda "
30
31[crystal]
32symbol = "cr "
33
34[cmake]
35symbol = "cmake "
36
37[daml]
38symbol = "daml "
39
40[dart]
41symbol = "dart "
42
43[deno]
44symbol = "deno "
45
46[dotnet]
47symbol = ".NET "
48
49[directory]
50read_only = " ro"
51
52[docker_context]
53symbol = "docker "
54
55[elixir]
56symbol = "exs "
57
58[elm]
59symbol = "elm "
60
61[git_branch]
62symbol = "git "
63
64[golang]
65symbol = "go "
66
67[hg_branch]
68symbol = "hg "
69
70[java]
71symbol = "java "
72
73[julia]
74symbol = "jl "
75
76[kotlin]
77symbol = "kt "
78
79[lua]
80symbol = "lua "
81
82[nodejs]
83symbol = "nodejs "
84
85[memory_usage]
86symbol = "memory "
87
88[meson]
89symbol = "meson "
90
91[nim]
92symbol = "nim "
93
94[nix_shell]
95symbol = "nix "
96
97[ocaml]
98symbol = "ml "
99
100[package]
101symbol = "pkg "
102
103[perl]
104symbol = "pl "
105
106[php]
107symbol = "php "
108
109[pulumi]
110symbol = "pulumi "
111
112[purescript]
113symbol = "purs "
114
115[python]
116symbol = "py "
117
118[raku]
119symbol = "raku "
120
121[ruby]
122symbol = "rb "
123
124[rust]
125symbol = "rs "
126
127[scala]
128symbol = "scala "
129
130[spack]
131symbol = "spack "
132
133[sudo]
134symbol = "sudo "
135
136[swift]
137symbol = "swift "
138
139[terraform]
140symbol = "terraform "
141
142[zig]
143symbol = "zig "
diff --git a/common/commandline/starship.nix b/common/commandline/starship.nix
new file mode 100644
index 0000000..1683765
--- /dev/null
+++ b/common/commandline/starship.nix
@@ -0,0 +1,26 @@
1inputs: {lib, ...}: {
2 home-manager.users.minijackson = {
3 programs.starship = {
4 enable = true;
5 enableZshIntegration = false;
6
7 settings = lib.mkMerge [
8 {
9 directory = {
10 fish_style_pwd_dir_length = 2;
11 style = "bold blue";
12 };
13 jobs.symbol = "+ ";
14 nix_shell.style = "bold blue";
15 package = {
16 disabled = true;
17 style = "bold green";
18 };
19 rust.style = "bold dimmed yellow";
20 }
21
22 (lib.importTOML ./starship-plain-text-symbols.toml)
23 ];
24 };
25 };
26}