diff options
-rw-r--r-- | common/commandline.nix | 36 | ||||
-rw-r--r-- | common/commandline/starship-plain-text-symbols.toml | 143 | ||||
-rw-r--r-- | common/commandline/starship.nix | 26 |
3 files changed, 171 insertions, 34 deletions
diff --git a/common/commandline.nix b/common/commandline.nix index 502c739..74adfa2 100644 --- a/common/commandline.nix +++ b/common/commandline.nix | |||
@@ -13,6 +13,7 @@ in | |||
13 | (import ./commandline/dircolors.nix inputs) | 13 | (import ./commandline/dircolors.nix inputs) |
14 | (import ./commandline/git.nix inputs) | 14 | (import ./commandline/git.nix inputs) |
15 | (import ./commandline/htop.nix inputs) | 15 | (import ./commandline/htop.nix inputs) |
16 | (import ./commandline/starship.nix inputs) | ||
16 | (import ./commandline/tmux.nix inputs) | 17 | (import ./commandline/tmux.nix inputs) |
17 | (import ./commandline/zsh.nix inputs) | 18 | (import ./commandline/zsh.nix inputs) |
18 | ]; | 19 | ]; |
@@ -76,7 +77,7 @@ in | |||
76 | Defaults lecture_file = "${lectureFile}" | 77 | Defaults lecture_file = "${lectureFile}" |
77 | ''; | 78 | ''; |
78 | 79 | ||
79 | home-manager.users.minijackson = { ... }: { | 80 | home-manager.users.minijackson = { |
80 | programs.bash.enable = true; | 81 | programs.bash.enable = true; |
81 | 82 | ||
82 | programs.bat = { | 83 | programs.bat = { |
@@ -87,39 +88,6 @@ in | |||
87 | }; | 88 | }; |
88 | 89 | ||
89 | programs.pazi.enable = true; | 90 | programs.pazi.enable = true; |
90 | |||
91 | programs.starship = { | ||
92 | enable = true; | ||
93 | enableZshIntegration = false; | ||
94 | |||
95 | settings = { | ||
96 | character = { | ||
97 | success_symbol = "[>](bold green)"; | ||
98 | error_symbol = "[>](bold red)"; | ||
99 | }; | ||
100 | directory = { | ||
101 | fish_style_pwd_dir_length = 2; | ||
102 | style = "bold blue"; | ||
103 | }; | ||
104 | git_branch.symbol = "branch "; | ||
105 | git_status = { | ||
106 | ahead = "^"; | ||
107 | behind = "v"; | ||
108 | deleted = "x"; | ||
109 | }; | ||
110 | jobs.symbol = "+ "; | ||
111 | nix_shell.style = "bold blue"; | ||
112 | package = { | ||
113 | disabled = true; | ||
114 | style = "bold green"; | ||
115 | symbol = "version "; | ||
116 | }; | ||
117 | rust = { | ||
118 | style = "bold dimmed yellow"; | ||
119 | symbol = "rust "; | ||
120 | }; | ||
121 | }; | ||
122 | }; | ||
123 | }; | 91 | }; |
124 | 92 | ||
125 | home-manager.users.root = { ... }: { | 93 | home-manager.users.root = { ... }: { |
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 | } | ||