summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/commandline.nix36
-rw-r--r--common/commandline/starship-plain-text-symbols.toml143
-rw-r--r--common/commandline/starship.nix26
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]
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}