diff options
author | Minijackson <minijackson@riseup.net> | 2023-02-05 20:03:34 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-02-05 20:03:34 +0100 |
commit | 90e3482bb2e8e90a8ad23a29deecc6060c44ddde (patch) | |
tree | 282ca7edb10c3be19a2087dffc8b30c3a7108377 /common/commandline | |
parent | a97959badd758df26329fd269a2e9c471bba54a4 (diff) | |
download | nixos-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.toml | 143 | ||||
-rw-r--r-- | common/commandline/starship.nix | 26 |
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] | ||
2 | success_symbol = "[>](bold green)" | ||
3 | error_symbol = "[x](bold red)" | ||
4 | vimcmd_symbol = "[<](bold green)" | ||
5 | |||
6 | [git_commit] | ||
7 | tag_symbol = " tag " | ||
8 | |||
9 | [git_status] | ||
10 | ahead = ">" | ||
11 | behind = "<" | ||
12 | diverged = "<>" | ||
13 | renamed = "r" | ||
14 | deleted = "x" | ||
15 | |||
16 | [aws] | ||
17 | symbol = "aws " | ||
18 | |||
19 | [bun] | ||
20 | symbol = "bun " | ||
21 | |||
22 | [c] | ||
23 | symbol = "C " | ||
24 | |||
25 | [cobol] | ||
26 | symbol = "cobol " | ||
27 | |||
28 | [conda] | ||
29 | symbol = "conda " | ||
30 | |||
31 | [crystal] | ||
32 | symbol = "cr " | ||
33 | |||
34 | [cmake] | ||
35 | symbol = "cmake " | ||
36 | |||
37 | [daml] | ||
38 | symbol = "daml " | ||
39 | |||
40 | [dart] | ||
41 | symbol = "dart " | ||
42 | |||
43 | [deno] | ||
44 | symbol = "deno " | ||
45 | |||
46 | [dotnet] | ||
47 | symbol = ".NET " | ||
48 | |||
49 | [directory] | ||
50 | read_only = " ro" | ||
51 | |||
52 | [docker_context] | ||
53 | symbol = "docker " | ||
54 | |||
55 | [elixir] | ||
56 | symbol = "exs " | ||
57 | |||
58 | [elm] | ||
59 | symbol = "elm " | ||
60 | |||
61 | [git_branch] | ||
62 | symbol = "git " | ||
63 | |||
64 | [golang] | ||
65 | symbol = "go " | ||
66 | |||
67 | [hg_branch] | ||
68 | symbol = "hg " | ||
69 | |||
70 | [java] | ||
71 | symbol = "java " | ||
72 | |||
73 | [julia] | ||
74 | symbol = "jl " | ||
75 | |||
76 | [kotlin] | ||
77 | symbol = "kt " | ||
78 | |||
79 | [lua] | ||
80 | symbol = "lua " | ||
81 | |||
82 | [nodejs] | ||
83 | symbol = "nodejs " | ||
84 | |||
85 | [memory_usage] | ||
86 | symbol = "memory " | ||
87 | |||
88 | [meson] | ||
89 | symbol = "meson " | ||
90 | |||
91 | [nim] | ||
92 | symbol = "nim " | ||
93 | |||
94 | [nix_shell] | ||
95 | symbol = "nix " | ||
96 | |||
97 | [ocaml] | ||
98 | symbol = "ml " | ||
99 | |||
100 | [package] | ||
101 | symbol = "pkg " | ||
102 | |||
103 | [perl] | ||
104 | symbol = "pl " | ||
105 | |||
106 | [php] | ||
107 | symbol = "php " | ||
108 | |||
109 | [pulumi] | ||
110 | symbol = "pulumi " | ||
111 | |||
112 | [purescript] | ||
113 | symbol = "purs " | ||
114 | |||
115 | [python] | ||
116 | symbol = "py " | ||
117 | |||
118 | [raku] | ||
119 | symbol = "raku " | ||
120 | |||
121 | [ruby] | ||
122 | symbol = "rb " | ||
123 | |||
124 | [rust] | ||
125 | symbol = "rs " | ||
126 | |||
127 | [scala] | ||
128 | symbol = "scala " | ||
129 | |||
130 | [spack] | ||
131 | symbol = "spack " | ||
132 | |||
133 | [sudo] | ||
134 | symbol = "sudo " | ||
135 | |||
136 | [swift] | ||
137 | symbol = "swift " | ||
138 | |||
139 | [terraform] | ||
140 | symbol = "terraform " | ||
141 | |||
142 | [zig] | ||
143 | symbol = "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 @@ | |||
1 | inputs: {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 | } | ||