repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Split Nushell theme config

fdb51566c461cfbef2d96105b94356d7f054b884

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

nushell/config.nu

Modified
73 73 $env.config.history.file_format = "sqlite"
74 74 $env.config.history.isolation = true
76 -$env.config.color_config = {
77 - # primitives (data types)
78 - int: green
79 - float: green
80 - bool: green_bold
81 - string: blue
82 - nothing: dark_gray
83 - binary: dark_gray
84 - duration: green
85 - range: dark_gray
86 - cell-path: dark_gray
88 - # table / presentation
89 - separator: light_green
90 - header: light_blue_bold
91 - row_index: light_green
92 - leading_trailing_space_bg: dark_gray
93 - hints: cyan
94 - empty: dark_gray
95 - search_result: green_bold
97 - # shapes (syntax highlighting, Nugu philosophy)
98 - # human meaning -> prominent (important_local / focus)
99 - shape_string: blue
100 - shape_raw_string: blue
101 - shape_string_interpolation: green_bold
102 - shape_int: green_bold
103 - shape_float: green_bold
104 - shape_bool: green_bold
105 - shape_filepath: green
106 - shape_directory: green
107 - shape_globpattern: green
108 - shape_glob_interpolation: green_bold
109 - shape_record: green
110 - shape_list: green
111 - shape_table: green
112 - shape_datetime: green_bold
113 - shape_match_pattern: blue
114 - shape_signature: blue
115 - shape_literal: white
116 - shape_custom: magenta_bold
117 - shape_closure: blue_bold
118 - shape_block: blue_bold
119 - shape_range: dark_gray
121 - # structural / plumbing -> receded (minor)
122 - shape_keyword: dark_gray
123 - shape_operator: dark_gray
124 - shape_pipe: dark_gray
125 - shape_redirection: dark_gray
126 - shape_flag: light_cyan
127 - shape_binary: dark_gray
128 - shape_nothing: dark_gray
129 - shape_matching_brackets: dark_gray_bold
130 - shape_vardecl: white
131 - shape_variable: white
133 - # externals
134 - shape_external: light_magenta
135 - shape_externalarg: green_bold
136 - shape_external_resolved: magenta_bold
137 - shape_internalcall: light_cyan_bold
139 - # errors
140 - shape_garbage: {fg: white, bg: red, attr: b}
76 +source ($nu.default-config-dir | path join "theme.nu")
143 78 # Generate aliases here so login.nu can source the evaluated file.
144 79 source ($nu.default-config-dir | path join "gen-aliases.nu")

nushell/theme.nu

Added
new file mode 100644
1 +$env.config.color_config = {
2 + # primitives (data types)
3 + int: green
4 + float: green
5 + bool: green_bold
6 + string: blue
7 + nothing: dark_gray
8 + binary: dark_gray
9 + duration: green
10 + range: dark_gray
11 + cell-path: dark_gray
13 + # table / presentation
14 + separator: light_green
15 + header: light_blue_bold
16 + row_index: light_green
17 + leading_trailing_space_bg: dark_gray
18 + hints: cyan
19 + empty: dark_gray
20 + search_result: green_bold
22 + # shapes (syntax highlighting, Nugu philosophy)
23 + # human meaning -> prominent (important_local / focus)
24 + shape_string: blue
25 + shape_raw_string: blue
26 + shape_string_interpolation: green_bold
27 + shape_int: green_bold
28 + shape_float: green_bold
29 + shape_bool: green_bold
30 + shape_filepath: green
31 + shape_directory: green
32 + shape_globpattern: green
33 + shape_glob_interpolation: green_bold
34 + shape_record: green
35 + shape_list: green
36 + shape_table: green
37 + shape_datetime: green_bold
38 + shape_match_pattern: blue
39 + shape_signature: blue
40 + shape_literal: white
41 + shape_custom: magenta_bold
42 + shape_closure: blue_bold
43 + shape_block: blue_bold
44 + shape_range: dark_gray
46 + # structural / plumbing -> receded (minor)
47 + shape_keyword: dark_gray
48 + shape_operator: dark_gray
49 + shape_pipe: dark_gray
50 + shape_redirection: dark_gray
51 + shape_flag: light_cyan
52 + shape_binary: dark_gray
53 + shape_nothing: dark_gray
54 + shape_matching_brackets: dark_gray_bold
55 + shape_vardecl: white
56 + shape_variable: white
58 + # externals
59 + shape_external: light_magenta
60 + shape_externalarg: green_bold
61 + shape_external_resolved: magenta_bold
62 + shape_internalcall: light_cyan_bold
64 + # errors
65 + shape_garbage: {fg: white, bg: red, attr: b}