repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

fmt: taplo fmt

ec74298bdecd7e12f31d65b44291569d3bce1c19

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

cargo/config.toml

Modified
1 1 [build]
2 2 # enable a cache for crates between builds
3 - rustc-wrapper = "sccache"
3 +rustc-wrapper = "sccache"
4 4 # since we only care for builds for our own machine, let's benefit from thise juicy modern cpu features
5 5 rustflags = ["-C", "target-cpu=native"]

config.nu

Deleted
deleted file mode 100644
1 -# Nushell Config File
2 -use table.nu *
3 -use os.nu *
4 -use prompt.nu *
5 -use aliases.nu *
6 -use todo.nu
7 -use openssl.nu *
8 -use pacnew.nu
9 -use syncthing.nu
11 -# for more information on themes see
12 -# https://github.com/nushell/nushell/blob/main/docs/How_To_Coloring_and_Theming.md
13 -let default_theme = {
14 - # color for nushell primitives
15 - separator: white
16 - leading_trailing_space_bg: { attr: n } # no fg, no bg, attr non effectively turns this off
17 - header: green_bold
18 - empty: blue
19 - bool: white
20 - int: white
21 - filesize: white
22 - duration: white
23 - date: white
24 - range: white
25 - float: white
26 - string: white
27 - nothing: white
28 - binary: white
29 - cellpath: white
30 - row_index: green_bold
31 - record: white
32 - list: white
33 - block: white
34 - hints: dark_gray
36 - # shapes are used to change the cli syntax highlighting
37 - shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: b}
38 - shape_binary: purple_bold
39 - shape_bool: light_cyan
40 - shape_int: purple_bold
41 - shape_float: purple_bold
42 - shape_range: yellow_bold
43 - shape_internalcall: cyan_bold
44 - shape_external: cyan
45 - shape_externalarg: green_bold
46 - shape_literal: blue
47 - shape_operator: yellow
48 - shape_signature: green_bold
49 - shape_string: green
50 - shape_string_interpolation: cyan_bold
51 - shape_datetime: cyan_bold
52 - shape_list: cyan_bold
53 - shape_table: blue_bold
54 - shape_record: cyan_bold
55 - shape_block: blue_bold
56 - shape_filepath: cyan
57 - shape_globpattern: cyan_bold
58 - shape_variable: purple
59 - shape_flag: blue_bold
60 - shape_custom: green
61 - shape_nothing: light_cyan
64 -# The default config record. This is where much of your global configuration is setup.
65 -$env.config = {
66 - show_banner: false
67 - table: {
68 - mode: light # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
69 - }
70 - ls: {
71 - use_ls_colors: true
72 - clickable_links: true
73 - }
74 - rm: {
75 - always_trash: true
76 - }
77 - color_config: $default_theme
78 - use_grid_icons: true
79 - footer_mode: "auto" # always, never, number_of_rows, auto
80 - completions: {
82 - quick: true # set this to false to prevent auto-selecting completions when only one remains
83 - partial: true # set this to false to prevent partial filling of the prompt
84 - }
85 - float_precision: 2
86 - use_ansi_coloring: true
87 - filesize: {
88 - metric: false
89 - format: "auto" # b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib, zb, zib, auto
90 - }
91 - edit_mode: emacs # emacs, vi
92 - history: {
93 - file_format: "plaintext"
94 - max_size: 10000
95 - sync_on_enter: true # Enable to share the history between multiple sessions, else you have to close the session to persist history to file
96 - }
97 - menus: [
98 - # Configuration for default nushell menus
99 - # Note the lack of source parameter
100 - {
101 - name: completion_menu
102 - only_buffer_difference: false
103 - marker: "| "
104 - type: {
105 - layout: columnar
106 - columns: 4
107 - # col_width: 20 # Optional value. If missing all the screen width is used to calculate column width
108 - col_padding: 2
109 - }
110 - style: {
111 - text: green
112 - selected_text: green_reverse
113 - description_text: yellow
114 - }
115 - }
116 - {
117 - name: history_menu
118 - only_buffer_difference: true
119 - marker: "? "
120 - type: {
121 - layout: list
122 - page_size: 10
123 - }
124 - style: {
125 - text: green
126 - selected_text: green_reverse
127 - description_text: yellow
128 - }
129 - }
130 - {
131 - name: help_menu
132 - only_buffer_difference: true
133 - marker: "? "
134 - type: {
135 - layout: description
136 - columns: 4
137 - col_width: 20 # Optional value. If missing all the screen width is used to calculate column width
138 - col_padding: 2
139 - selection_rows: 4
140 - description_rows: 10
141 - }
142 - style: {
143 - text: green
144 - selected_text: green_reverse
145 - description_text: yellow
146 - }
147 - }
148 - # Example of extra menus created using a nushell source
149 - # Use the source field to create a list of records that populates
150 - # the menu
151 - {
152 - name: commands_menu
153 - only_buffer_difference: false
154 - marker: "# "
155 - type: {
156 - layout: columnar
157 - columns: 4
158 - col_width: 20
159 - col_padding: 2
160 - }
161 - style: {
162 - text: green
163 - selected_text: green_reverse
164 - description_text: yellow
165 - }
166 - source: { |buffer, position|
167 - $nu.scope.commands
168 - | where command =~ $buffer
169 - | each { |it| {value: $it.command description: $it.usage} }
170 - }
171 - }
172 - {
173 - name: vars_menu
174 - only_buffer_difference: true
175 - marker: "# "
176 - type: {
177 - layout: list
178 - page_size: 10
179 - }
180 - style: {
181 - text: green
182 - selected_text: green_reverse
183 - description_text: yellow
184 - }
185 - source: { |buffer, position|
186 - $nu.scope.vars
187 - | where name =~ $buffer
188 - | sort-by name
189 - | each { |it| {value: $it.name description: $it.type} }
190 - }
191 - }
192 - {
193 - name: commands_with_description
194 - only_buffer_difference: true
195 - marker: "# "
196 - type: {
197 - layout: description
198 - columns: 4
199 - col_width: 20
200 - col_padding: 2
201 - selection_rows: 4
202 - description_rows: 10
203 - }
204 - style: {
205 - text: green
206 - selected_text: green_reverse
207 - description_text: yellow
208 - }
209 - source: { |buffer, position|
210 - $nu.scope.commands
211 - | where command =~ $buffer
212 - | each { |it| {value: $it.command description: $it.usage} }
213 - }
214 - }
215 - ]
216 - keybindings: [
217 - {
218 - name: completion_menu
219 - modifier: none
220 - keycode: tab
221 - mode: emacs # Options: emacs vi_normal vi_insert
222 - event: {
223 - until: [
224 - { send: menu name: completion_menu }
225 - { send: menunext }
226 - ]
227 - }
228 - }
229 - {
230 - name: completion_previous
231 - modifier: shift
232 - keycode: backtab
233 - mode: [emacs, vi_normal, vi_insert] # Note: You can add the same keybinding to all modes by using a list
234 - event: { send: menuprevious }
235 - }
236 - {
237 - name: history_menu
238 - modifier: control
239 - keycode: char_x
240 - mode: emacs
241 - event: {
242 - until: [
243 - { send: menu name: history_menu }
244 - { send: menupagenext }
245 - ]
246 - }
247 - }
248 - {
249 - name: history_previous
250 - modifier: control
251 - keycode: char_z
252 - mode: emacs
253 - event: {
254 - until: [
255 - { send: menupageprevious }
256 - { edit: undo }
257 - ]
258 - }
259 - }
260 - # Keybindings used to trigger the user defined menus
261 - {
262 - name: commands_menu
263 - modifier: control
264 - keycode: char_t
265 - mode: [emacs, vi_normal, vi_insert]
266 - event: { send: menu name: commands_menu }
267 - }
268 - {
269 - name: vars_menu
270 - modifier: control
271 - keycode: char_y
272 - mode: [emacs, vi_normal, vi_insert]
273 - event: { send: menu name: vars_menu }
274 - }
275 - {
276 - name: commands_with_description
277 - modifier: control
278 - keycode: char_u
279 - mode: [emacs, vi_normal, vi_insert]
280 - event: { send: menu name: commands_with_description }
281 - } ]
284 -# must be done, after defining config, since zoxide mutates it
285 -use zoxide.nu *
287 -overlay use coreutils.nu

env.nu

Deleted
deleted file mode 100644
1 -# GLOBAL VARIABLES
2 -# GLOBAL VARIABLES
4 -$env.WIN32 = ( $nu.os-info.name =~ "windows" )
5 -$env.NURC_DIR = ( $nu.config-path | path expand | path dirname )
6 -$env.DOTFILES = ( $env.NURC_DIR | path join ".." | path expand )
7 -$env.WORKSPACE = if $env.WIN32 { "W:/" } else { "~/Workspace" | path expand }
8 -$env.NOTES = if $env.WIN32 { "N:/" } else { "~/Notes" | path expand }
9 -if ($env | get -i TERM_PROGRAM) == WezTerm {
10 - $env.TERM = "wezterm"
11 - $env.TERMCAP = ~/.terminfo/w/wezterm
12 -}
14 -# theme for ls and other programs, that use LS_COLORS
15 -$env.LS_COLORS = (try { vivid generate ayu | into string } catch {""})
17 -# Specifies how environment variables are:
18 -# - converted from a string to a value on Nushell startup (from_string)
19 -# - converted from a value back to a string when running external commands (to_string)
20 -# Note: The conversions happen *after* config.nu is loaded
21 -$env.ENV_CONVERSIONS = {
22 - "PATH": {
23 - from_string: { |s| $s | split row (char esep) }
24 - to_string: { |v| $v | str join (char esep) }
25 - }
26 - "Path": {
27 - from_string: { |s| $s | split row (char esep) }
28 - to_string: { |v| $v | str join (char esep) }
29 - }
30 -}
32 -# Directories to search for scripts when calling source or use
33 -$env.NU_LIB_DIRS = [
34 - ($nu.config-path | path dirname | path join 'modules'),
35 - ($nu.config-path | path dirname | path join 'completions')
36 -]
38 -alias cb = flatpak run app.getclipboard.Clipboard
40 -$env.CLIPBOARD_EDITOR = nvim
41 -$env.CLIPBOARD_HISTORY = 100000
42 -$env.CLIPBOARD_PERSISTDIR = /home/oli/Clipboard
43 -$env.CLIPBOARD_NOAUDIO = 1
44 -# $env.CLIPBOARD_NOGUI = 1
45 -$env.CLIPBOARD_THEME = light

helix/config.toml

Modified
43 43 "file-line-ending",
44 44 "file-type",
46 -right = [
47 - "diagnostics",
48 - "spacer",
49 - "spinner"
46 +right = ["diagnostics", "spacer", "spinner"]
51 47 separator = "·"
52 48 mode.normal = ""
53 49 mode.insert = ""
85 81 enable = true
87 83 [keys.normal]
88 -ret = ["add_newline_below","move_line_down"]
84 +ret = ["add_newline_below", "move_line_down"]
89 85 A-ret = ["add_newline_above", "move_line_up"]
91 87 # move current line up
92 -A-up = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before"]
93 -A-k = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before"]
88 +A-up = [
89 + "extend_to_line_bounds",
90 + "delete_selection",
91 + "move_line_up",
92 + "paste_before",
94 +A-k = [
95 + "extend_to_line_bounds",
96 + "delete_selection",
97 + "move_line_up",
98 + "paste_before",
95 101 # move current line down
96 102 A-down = ["extend_to_line_bounds", "delete_selection", "paste_after"]

topgrade/topgrade.windows.toml

Modified
1 -[misc]
2 -# Disable specific steps - same options as the command line flag
3 -disable = ["wsl", "vim"]
5 -assume_yes = true
7 -# Run specific steps - same options as the command line flag
8 -#only = ["system", "emacs"]
10 -# Do not ask to retry failed steps (default: false)
11 -no_retry = true
13 -# Do not set the terminal title
14 -set_title = true
16 -# Display the time in step titles
17 -display_time = true
19 -# Cleanup temporary or old files
20 -cleanup = true
22 -[composer]
23 -self_update = true
25 -[git]
26 -# Additional git repositories to pull
27 -repos = ["W:/*/"]
29 -max_concurrency = 12
31 -pull_predefined = false
33 -# Arguments to pass Git when pulling Repositories
34 -# arguments = "--ff --rebase"
36 -[windows]
37 -enable_winget = true
39 -# Commands to run before anything
40 -[pre_commands]
41 -"01 - Scoop Export" = "scoop export --config > 'X:/scoop_installed_apps.json' *> $null"
43 -[commands]
44 -"00 - Refresh dotfiles" = "java W:/dotfiles/bootstripper.java W:/dotfiles"
45 -"01 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu"
46 -"02 - Advantage-PM Client" = "nu X:/update_apm_client.nu"
47 -"03 - MeMate" = "nu X:/update_memate.nu"
48 -"04 - TLDR" = "tldr --update"
1 +[misc]
2 +# Disable specific steps - same options as the command line flag
3 +disable = ["wsl", "vim"]
5 +assume_yes = true
7 +# Run specific steps - same options as the command line flag
8 +#only = ["system", "emacs"]
10 +# Do not ask to retry failed steps (default: false)
11 +no_retry = true
13 +# Do not set the terminal title
14 +set_title = true
16 +# Display the time in step titles
17 +display_time = true
19 +# Cleanup temporary or old files
20 +cleanup = true
22 +[composer]
23 +self_update = true
25 +[git]
26 +# Additional git repositories to pull
27 +repos = ["W:/*/"]
29 +max_concurrency = 12
31 +pull_predefined = false
33 +# Arguments to pass Git when pulling Repositories
34 +# arguments = "--ff --rebase"
36 +[windows]
37 +enable_winget = true
39 +# Commands to run before anything
40 +[pre_commands]
41 +"01 - Scoop Export" = "scoop export --config > 'X:/scoop_installed_apps.json' *> $null"
43 +[commands]
44 +"00 - Refresh dotfiles" = "java W:/dotfiles/bootstripper.java W:/dotfiles"
45 +"01 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu"
46 +"02 - Advantage-PM Client" = "nu X:/update_apm_client.nu"
47 +"03 - MeMate" = "nu X:/update_memate.nu"
48 +"04 - TLDR" = "tldr --update"