repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

wezterm: kill mux again

63d26b0946a70c461ad8df12b2b1d13bd744bff4

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (15)

git/gitconfig

Modified
1 1 [user]
2 - name = Oliver Jan Krylow
3 - email = oliver@bugabinga.net
2 + name = Oliver Jan Krylow
3 + email = oliver@bugabinga.net
5 5 [core]
6 - editor = nvim
7 - quotepath = false
8 - autocrlf = input
9 - pager = delta
10 - safecrlf = false
11 - symlinks = true
12 - fscache = true
6 + editor = nvim
7 + quotepath = false
8 + autocrlf = input
9 + pager = delta
10 + safecrlf = false
11 + symlinks = true
12 + fscache = true
13 13 preloadIndex = true
15 15 [help]
23 23 autosquash = true
25 25 [diff]
26 - colorMoved = default
27 - tool = difftastic
26 + colorMoved = default
27 + tool = difftastic
29 29 [difftool]
30 - prompt = false
30 + prompt = false
32 32 [difftool "meld"]
33 - cmd = "meld \"$LOCAL\" \"$REMOTE\""
33 + cmd = "meld \"$LOCAL\" \"$REMOTE\""
35 35 [difftool "difftastic"]
36 - cmd = "difft \"$LOCAL\" \"$REMOTE\""
36 + cmd = "difft \"$LOCAL\" \"$REMOTE\""
38 38 [pager]
39 - difftool = true
39 + difftool = true
41 41 [merge]
42 - tool = nvim_merge
42 + tool = nvim_merge
44 44 [mergetool]
45 - keepBackup = false
46 - prompt = false
45 + keepBackup = false
46 + prompt = false
48 48 [mergetool "meld_merge"]
49 - cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
49 + cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
51 51 [mergetool "nvim_merge"]
52 - cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
52 + cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
54 54 [push]
55 - autoSetupRemote = true
56 - default = "upstream"
55 + autoSetupRemote = true
56 + default = "upstream"
58 58 [pull]
59 - rebase = false
59 + rebase = false
61 61 [interactive]
62 - diffFilter = delta --color-only
62 + diffFilter = delta --color-only
64 64 [delta]
65 - side-by-side = true
66 - line-numbers = true
67 - decorations = true
68 - navigate = true
69 - syntax-theme = none
65 + side-by-side = true
66 + line-numbers = true
67 + decorations = true
68 + navigate = true
69 + syntax-theme = none
71 71 [interactive]
72 - diffFilter = delta --color-only
72 + diffFilter = delta --color-only
74 74 [init]
75 - defaultBranch = trunk
75 + defaultBranch = trunk
77 77 [commit]
78 - verbose = true
78 + verbose = true
80 80 [help]
81 81 # try to automatically correct mispelled git commands
82 - autocorrect = 7
82 + autocorrect = 7
84 84 # In order to have host-specific configuration, I include additional settings here.
85 85 # On each host a different file might be symlinked into '.gitconfig.include'.
86 86 [include]
87 - path = .gitconfig.include
87 + path = .gitconfig.include

neovim/init.lua

Modified
8 8 -- ▀▀▀ █ █ ██ █
9 9 -- ▀ ▀
11 +-- enable lua bytecode caching
12 +vim.loader.enable()
11 14 -- setup debug mode
12 15 -- require 'std.debug'.toggle()

neovim/lazy-lock.json

Modified
9 9 "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
10 10 "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
11 11 "colorizer.nvim": { "branch": "master", "commit": "107719885290366c893e1c1c58b7474cbeabfef6" },
12 - "conform.nvim": { "branch": "master", "commit": "9b26e81c4292106e68dda3e7b64473434fd5b3e0" },
13 - "diffview.nvim": { "branch": "main", "commit": "72c6983f422689f310b379a04fd555799b0d7cfc" },
14 - "dressing.nvim": { "branch": "master", "commit": "572314728cb1ce012e825fd66331f52c94acac12" },
12 + "conform.nvim": { "branch": "master", "commit": "f3b930db4964d60e255c8f9e37b7f2218dfc08cb" },
13 + "diffview.nvim": { "branch": "main", "commit": "3afa6a053f680e9f1329c4a151db988a482306cd" },
14 + "dressing.nvim": { "branch": "master", "commit": "3c38ac861e1b8d4077ff46a779cde17330b29f3a" },
15 15 "fidget.nvim": { "branch": "main", "commit": "ef99df04a1c53a453602421bc0f756997edc8289" },
16 16 "flash.nvim": { "branch": "main", "commit": "7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
17 17 "gitsigns.nvim": { "branch": "main", "commit": "76927d14d3fbd4ba06ccb5246e79d93b5442c188" },
18 18 "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
19 19 "heirline.nvim": { "branch": "master", "commit": "0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
20 20 "indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" },
21 - "lazy.nvim": { "branch": "main", "commit": "8f19915175395680808de529e4220da8dafc0759" },
21 + "lazy.nvim": { "branch": "main", "commit": "24fa2a97085ca8a7220b5b078916f81e316036fd" },
22 22 "lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
23 - "mini.bracketed": { "branch": "main", "commit": "65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
24 - "mini.bufremove": { "branch": "main", "commit": "931a3bb514147d9e812767275c4beba6b779b1d3" },
23 + "mini.bracketed": { "branch": "main", "commit": "06ad08fc75dc540cba76d3d8de0f2dc9f75b5812" },
24 + "mini.bufremove": { "branch": "main", "commit": "e6044aa28e61d4dd9ec86194d6f81743eced0c1c" },
25 25 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
26 26 "neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
27 27 "neogen": { "branch": "main", "commit": "6de0add4805165317ab7d3d36b5cef48b1b865f3" },
32 32 "nvim-genghis": { "branch": "main", "commit": "7ed82d0d0513946bbc678f326e5750c79a942351" },
33 33 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
34 34 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
35 - "nvim-lint": { "branch": "master", "commit": "4f354839581be5f4ec229869c82106826b39807d" },
35 + "nvim-lint": { "branch": "master", "commit": "e19842a05aae484957ad20710444757bc0a61d63" },
36 36 "nvim-lsp-file-operations": { "branch": "master", "commit": "223aca86b737dc66e9c51ebcda8788a8d9cc6cf2" },
37 37 "nvim-navbuddy": { "branch": "master", "commit": "f22bac988f2dd073601d75ba39ea5636ab6e38cb" },
38 38 "nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
39 - "nvim-neoclip.lua": { "branch": "main", "commit": "798cd0592a81c185465db3a091a0ff8a21af60fd" },
40 - "nvim-spectre": { "branch": "master", "commit": "5690ea46baf08bbc1623980012e14b6239ce582e" },
41 - "nvim-surround": { "branch": "main", "commit": "79aaa42da1f698ed31bcbe7f83081f69dca7ba17" },
39 + "nvim-neoclip.lua": { "branch": "main", "commit": "9b02a625dfa22499089458554be86171a1dfe8b1" },
40 + "nvim-spectre": { "branch": "master", "commit": "366f46fdd4a1593cc237aea13d5ef113739a472c" },
41 + "nvim-surround": { "branch": "main", "commit": "fa5b365e847909df35cea184e13b7b811f346cda" },
42 42 "nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
43 - "nvim-treesitter": { "branch": "master", "commit": "30de5e7e9486fb1b1b8c2a1e71052b13f94f1cb0" },
43 + "nvim-treesitter": { "branch": "master", "commit": "5c924407cf110e9da4f3ba02ffed127b4198ad89" },
44 44 "nvim-treesitter-context": { "branch": "master", "commit": "f62bfe19e0fbc13ae95649dfb3cf22f4ff85b683" },
45 45 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
46 46 "nvim-treesitter-textobjects": { "branch": "master", "commit": "3557e41418b4a6c5b85d5d64abe94c9c50fa9b14" },
47 - "nvim-ts-autotag": { "branch": "main", "commit": "8ae54b90e36ef1fc5267214b30c2cbff71525fe4" },
47 + "nvim-ts-autotag": { "branch": "main", "commit": "bcf3146864262ef2d3c877beba3e222b5c73780d" },
48 48 "nvim-ts-context-commentstring": { "branch": "main", "commit": "cb064386e667def1d241317deed9fd1b38f0dc2e" },
49 - "nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" },
49 + "nvim-web-devicons": { "branch": "master", "commit": "b77921fdc44833c994fdb389d658ccbce5490c16" },
50 50 "nvim-window": { "branch": "main", "commit": "81f29840ac3aaeea6fc2153edfabebd00d692476" },
51 51 "oil.nvim": { "branch": "master", "commit": "2cb39e838e9dcd8b374f09a3a87a2e5ec9d372f6" },
52 52 "pair-ls.nvim": { "branch": "master", "commit": "ccf3280d8cafec48e4947dd827abbc456435dfad" },
53 53 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
54 54 "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
55 55 "qf_helper.nvim": { "branch": "master", "commit": "fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" },
56 - "schemastore.nvim": { "branch": "main", "commit": "9a5992a881583d886bfbb46631a09f736f0fae50" },
56 + "schemastore.nvim": { "branch": "main", "commit": "931f9f3b7b60ec976159cb01b4a40da3829ac2fd" },
57 57 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
58 58 "speedtyper.nvim": { "branch": "main", "commit": "2d158eed4c753995b0501a3a7a72464fbb213e3d" },
59 59 "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
60 - "substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
60 + "substitute.nvim": { "branch": "main", "commit": "8b93e792747520b6490237b5b32963e256fbde24" },
61 61 "suda.vim": { "branch": "master", "commit": "b97fab52f9cdeabe2bbb5eb98d82356899f30829" },
62 62 "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
63 63 "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
66 66 "text-case.nvim": { "branch": "main", "commit": "d62c63a4e9a996c7321885937ab89920fca2c1c8" },
67 67 "tint.nvim": { "branch": "master", "commit": "02bd0527a315a80e4e25bb2dd7b6994fb0daae01" },
68 68 "todo-comments.nvim": { "branch": "main", "commit": "a7e39ae9e74f2c8c6dc4eea6d40c3971ae84752d" },
69 - "tree-sitter-nu": { "branch": "main", "commit": "a58513279e98dc3ff9ed149e3b4310cbb7e11068" },
70 - "treesj": { "branch": "main", "commit": "e1e82ab4237619d342c7102c9f13d4b9833bfd39" },
69 + "tree-sitter-nu": { "branch": "main", "commit": "fae35745e32c015dc342136802f63b8456ccec7f" },
70 + "treesj": { "branch": "main", "commit": "f98deb33805485b56a8d44d1a27d16874af00d7f" },
71 71 "twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
72 72 "venn.nvim": { "branch": "main", "commit": "b09c2f36ddf70b498281845109bedcf08a7e0de0" },
73 73 "vim-startuptime": { "branch": "master", "commit": "ac2cccb5be617672add1f4f3c0a55ce99ba34e01" },
75 75 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
76 76 "which-key.nvim": { "branch": "main", "commit": "ce741eb559c924d72e3a67d2189ad3771a231414" },
77 77 "zen-mode.nvim": { "branch": "main", "commit": "78557d972b4bfbb7488e17b5703d25164ae64e6a" }
78 -}

neovim/lua/bugabinga/editorconfig.lua

Modified
31 31 editorconfig.properties.diagnostic = function ( bufnr, value )
32 32 local option = tobool( value )
33 33 if option then
34 - vim.diagnostic.enable( bufnr )
34 + vim.diagnostic.enable( true, { bufnr = bufnr, } )
35 35 else
36 - vim.diagnostic.disable( bufnr )
36 + vim.diagnostic.enable( false, { bufnr = bufnr } )

neovim/lua/bugabinga/plugins/lint.lua

Modified
10 10 opts = {
11 11 linters_by_ft = {
12 - lua = { 'luacheck', },
12 + lua = { 'selene', },
13 13 sh = { 'shellcheck', },
14 - nu = { 'nu-check', },
14 + -- TODO make this linter
15 + -- nu = { 'nu-check', },
16 17 linters = {},

nushell/config.nu

Modified
1 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 *
2 +use modules/table.nu *
3 +use modules/os.nu *
4 +use modules/prompt.nu *
5 +use modules/aliases.nu *
6 +use modules/todo.nu
7 +use modules/openssl.nu *
8 +use modules/md.nu
10 +# TODO: use nugu colors
9 11 # for more information on themes see
10 12 # https://github.com/nushell/nushell/blob/main/docs/How_To_Coloring_and_Theming.md
11 13 let default_theme = {
79 81 quick: true # set this to false to prevent auto-selecting completions when only one remains
80 82 partial: true # set this to false to prevent partial filling of the prompt
82 - hooks: {
83 - pre_prompt: [{||
84 - if (which direnv | is-empty) {
85 - return
86 - }
87 - direnv export json | from json | default {} | load-env
88 - }]
89 - }
90 84 float_precision: 2
91 85 use_ansi_coloring: true
92 86 filesize: {
99 93 max_size: 10000
100 94 sync_on_enter: true # Enable to share the history between multiple sessions, else you have to close the session to persist history to file
102 - menus: [
103 - # Configuration for default nushell menus
104 - # Note the lack of source parameter
105 - {
106 - name: completion_menu
107 - only_buffer_difference: false
108 - marker: "| "
109 - type: {
110 - layout: columnar
111 - columns: 4
112 - # col_width: 20 # Optional value. If missing all the screen width is used to calculate column width
113 - col_padding: 2
114 - }
115 - style: {
116 - text: green
117 - selected_text: green_reverse
118 - description_text: yellow
119 - }
120 - }
121 - {
122 - name: history_menu
123 - only_buffer_difference: true
124 - marker: "? "
125 - type: {
126 - layout: list
127 - page_size: 10
128 - }
129 - style: {
130 - text: green
131 - selected_text: green_reverse
132 - description_text: yellow
133 - }
134 - }
135 - {
136 - name: help_menu
137 - only_buffer_difference: true
138 - marker: "? "
139 - type: {
140 - layout: description
141 - columns: 4
142 - col_width: 20 # Optional value. If missing all the screen width is used to calculate column width
143 - col_padding: 2
144 - selection_rows: 4
145 - description_rows: 10
146 - }
147 - style: {
148 - text: green
149 - selected_text: green_reverse
150 - description_text: yellow
151 - }
152 - }
153 - # Example of extra menus created using a nushell source
154 - # Use the source field to create a list of records that populates
155 - # the menu
156 - {
157 - name: commands_menu
158 - only_buffer_difference: false
159 - marker: "# "
160 - type: {
161 - layout: columnar
162 - columns: 4
163 - col_width: 20
164 - col_padding: 2
165 - }
166 - style: {
167 - text: green
168 - selected_text: green_reverse
169 - description_text: yellow
170 - }
171 - source: { |buffer, position|
172 - $nu.scope.commands
173 - | where command =~ $buffer
174 - | each { |it| {value: $it.command description: $it.usage} }
175 - }
176 - }
177 - {
178 - name: vars_menu
179 - only_buffer_difference: true
180 - marker: "# "
181 - type: {
182 - layout: list
183 - page_size: 10
184 - }
185 - style: {
186 - text: green
187 - selected_text: green_reverse
188 - description_text: yellow
189 - }
190 - source: { |buffer, position|
191 - $nu.scope.vars
192 - | where name =~ $buffer
193 - | sort-by name
194 - | each { |it| {value: $it.name description: $it.type} }
195 - }
196 - }
197 - {
198 - name: commands_with_description
199 - only_buffer_difference: true
200 - marker: "# "
201 - type: {
202 - layout: description
203 - columns: 4
204 - col_width: 20
205 - col_padding: 2
206 - selection_rows: 4
207 - description_rows: 10
208 - }
209 - style: {
210 - text: green
211 - selected_text: green_reverse
212 - description_text: yellow
213 - }
214 - source: { |buffer, position|
215 - $nu.scope.commands
216 - | where command =~ $buffer
217 - | each { |it| {value: $it.command description: $it.usage} }
218 - }
219 - }
220 - ]
221 - keybindings: [
222 - {
223 - name: completion_menu
224 - modifier: none
225 - keycode: tab
226 - mode: emacs # Options: emacs vi_normal vi_insert
227 - event: {
228 - until: [
229 - { send: menu name: completion_menu }
230 - { send: menunext }
231 - ]
232 - }
233 - }
234 - {
235 - name: completion_previous
236 - modifier: shift
237 - keycode: backtab
238 - mode: [emacs, vi_normal, vi_insert] # Note: You can add the same keybinding to all modes by using a list
239 - event: { send: menuprevious }
240 - }
241 - {
242 - name: history_menu
243 - modifier: control
244 - keycode: char_x
245 - mode: emacs
246 - event: {
247 - until: [
248 - { send: menu name: history_menu }
249 - { send: menupagenext }
250 - ]
251 - }
252 - }
253 - {
254 - name: history_previous
255 - modifier: control
256 - keycode: char_z
257 - mode: emacs
258 - event: {
259 - until: [
260 - { send: menupageprevious }
261 - { edit: undo }
262 - ]
263 - }
264 - }
265 - # Keybindings used to trigger the user defined menus
266 - {
267 - name: commands_menu
268 - modifier: control
269 - keycode: char_t
270 - mode: [emacs, vi_normal, vi_insert]
271 - event: { send: menu name: commands_menu }
272 - }
273 - {
274 - name: vars_menu
275 - modifier: control
276 - keycode: char_y
277 - mode: [emacs, vi_normal, vi_insert]
278 - event: { send: menu name: vars_menu }
279 - }
280 - {
281 - name: commands_with_description
282 - modifier: control
283 - keycode: char_u
284 - mode: [emacs, vi_normal, vi_insert]
285 - event: { send: menu name: commands_with_description }
286 - } ]
289 98 # must be done, after defining config, since zoxide mutates it
290 -use zoxide.nu *
99 +# this will fail if zoxide is not installed yet
100 +source ($nu.config-path | path dirname | path join "zoxide.nu")

nushell/env.nu

Modified
3 3 # GLOBAL VARIABLES
5 5 $env.WIN32 = ( $nu.os-info.name =~ "windows" )
6 6 $env.NURC_DIR = ( $nu.config-path | path expand | path dirname )
7 7 $env.DOTFILES = ( $env.NURC_DIR | path join ".." | path expand )
8 -$env.WORKSPACE = if $env.WIN32 { "W:/" } else { "~/Workspace" | path expand }
9 -$env.NOTES = if $env.WIN32 { "N:/" } else { "~/Notes" | path expand }
8 +$env.WORKSPACE = if $env.WIN32 { "~/Workspaces" } else { "~/Workspace" | path expand }
9 +$env.NOTES = ("~/Notes" | path expand)
10 +$env.TOOLS = ("~/Tools" | path expand)
11 12 if not (which nvim | is-empty) {
12 13 $env.EDITOR = 'nvim'
18 19 if ($env | get -i TERM_PROGRAM) == WezTerm {
19 - $env.TERM = "wezterm"
20 - if not $env.WIN32 {
21 - $env.TERMCAP = ~./termcap/w/wezterm
22 - }
20 + $env.TERM = "xterm-256color"
25 23 # theme for ls and other programs, that use LS_COLORS
39 37 to_string: { |v| $v | str join (char esep) }
43 -# Directories to search for scripts when calling source or use
44 -$env.NU_LIB_DIRS = [
45 - ($nu.config-path | path dirname | path join 'modules'),
46 - ($nu.config-path | path dirname | path join 'completions')
47 -]

nushell/modules/md.nu

Added
new file mode 100644
1 +# create new directory and change into to.
2 +export def --env main [ p:path ] {
3 + mkdir $p
4 + cd $p
5 +}

nushell/modules/prompt.nu

Modified
36 +def prompt-git-branch [] {
36 39 def get_vcs_path [] {
37 40 #normalize path
38 41 let pwd = ($env.PWD | path expand)
40 43 let svn_relative_cmd = ( do --ignore-errors { ^svn info --show-item relative-url --no-newline $pwd | complete } )
41 44 let svn_relative_path = if ( (not ($svn_relative_cmd | is-empty)) and ($svn_relative_cmd.exit_code == 0)) { $" 🐢 (char nf_branch) ($svn_relative_cmd.stdout)" }
43 - let git_status = ( do --ignore-errors { gstat } )
44 - let git_branch = if ( ( not ($git_status | is-empty)) and ($git_status.branch != "no_branch") ) { $" (char nf_git) (char nf_branch) ($git_status.branch)" }
46 + let git_branch_cmd = ( do -i { ^git rev-parse --abbrev-ref HEAD | complete } )
47 + let git_path = if (not ($git_branch_cmd | is-empty) and ($git_branch_cmd.exit_code == 0)) { $" (char nf_git) (char nf_branch) ($git_branch_cmd.stdout | str trim -r)" }
47 50 $svn_relative_path
48 - $git_branch
51 + $git_path
49 52 ] | str join
87 90 $command_status_segment
88 91 (ansi reset)
89 92 (ansi dark_gray)
90 - ( if (sys).host.hostname == "x230" { (akku) } else { $time_segment })
93 + ( if (sys host).hostname == "x230" { (akku) } else { $time_segment })
91 94 (ansi reset)
92 95 ] | str join

nushell/modules/zoxide.nu

Deleted
deleted file mode 100644
1 -# Code generated by zoxide. DO NOT EDIT.
3 -# =============================================================================
4 -#
5 -# Hook configuration for zoxide.
6 -#
8 -# Initialize hook to add new entries to the database.
9 -export-env {
10 - $env.config = ($env | default {} config).config
11 - $env.config = ($env.config | default {} hooks)
12 - $env.config = ($env.config | update hooks ($env.config.hooks | default [] pre_prompt))
13 - $env.config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append { ||
14 - zoxide add -- $env.PWD
15 - }))
16 -}
18 -# =============================================================================
19 -#
20 -# When using zoxide with --no-cmd, alias these internal functions as desired.
21 -#
23 -# Jump to a directory using only keywords.
24 -export def --env __zoxide_z [...rest:string] {
25 - # `z -` does not work yet, see https://github.com/nushell/nushell/issues/4769
26 - let arg0 = ($rest | append '~').0
27 - let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
28 - $arg0
29 - } else {
30 - (zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n")
31 - }
32 - cd $path
33 -}
35 -# Jump to a directory using interactive search.
36 -export def --env __zoxide_zi [...rest:string] {
37 - cd $'(zoxide query -i -- ...$rest | str trim -r -c "\n")'
38 -}
40 -# =============================================================================
41 -#
42 -# Commands for zoxide. Disable these using --no-cmd.
43 -#
45 -export alias z = __zoxide_z
46 -export alias zi = __zoxide_zi
48 -# =============================================================================
49 -#
50 -# Add this to your env file (find it by running `$nu.env-path` in Nushell):
51 -#
52 -# zoxide init nushell --hook prompt | save ~/.zoxide.nu
53 -#
54 -# Now, add this to the end of your config file (find it by running
55 -# `$nu.config-path` in Nushell):
56 -#
57 -# source ~/.zoxide.nu
58 -#
59 -# Note: zoxide only supports Nushell v0.63.0 and above.

tools/cargo-tools.nu

Modified
6 6 # is not installed yet
7 7 let cargo_crates = [
8 8 [ name bin crago_args];
9 - [ "inferno" "inferno-flamegraph" [] ]
10 - [ "nu" "nu" [ "--features" "extra" ] ]
11 - [ "sd" "sd" [] ]
12 - [ "ouch" "ouch" [] ]
13 - [ "fd-find" "fd" [] ]
14 - [ "choose", "choose", [] ]
15 - [ "ripgrep" "rg" [] ]
16 - [ "eva" "eva" [] ]
17 - [ "mdcat" "mdcat" [] ]
18 - [ "cargo-update" "cargo-install-update" [] ]
9 + [ "bat" "bat" [] ]
10 + [ "bottom" "btm" [] ]
19 11 [ "cargo-cache" "cargo-cache" [] ]
12 + [ "cargo-update" "cargo-install-update" [] ]
13 + [ "choose", "choose", [] ]
14 + [ "eva" "eva" [] ]
15 + [ "eva" "eva" [] ]
16 + [ "fd-find" "fd" [] ]
17 + [ "git-delta" "delta" [] ]
18 + [ "gitu" "gitu" [ "--locked" ] ]
20 19 [ "hexyl" "hexyl" [] ]
21 20 [ "hyperfine" "hyperfine" [] ]
22 - [ "tealdeer" "tldr" [] ]
23 - [ "tokei" "tokei" [] ]
24 - [ "bat" "bat" [] ]
25 - [ "pastel" "pastel" [] ]
26 - [ "zoxide" "zoxide" [] ]
27 - [ "lychee" "lychee" [] ]
28 - [ "viu" "viu" [] ]
29 - [ "vivid" "vivid" [] ]
30 - [ "bottom" "btm" [] ]
31 21 [ "just" "just" [] ]
22 + [ "lms" "lms" [] ]
23 + [ "lychee" "lychee" [ "--locked" "--no-default-features" "--features" "rustls-tls,email-check"] ]
24 + [ "mdcat" "mdcat" [] ]
32 25 [ "mdsh" "mdsh" [] ]
33 - [ "git-delta" "delta" [] ]
26 + [ "nu" "nu" [ "--features" "extra" ] ]
27 + [ "ouch" "ouch" [] ]
28 + [ "pastel" "pastel" [] ]
29 + [ "ripgrep" "rg" [] ]
30 + [ "sd" "sd" [] ]
34 31 [ "selene" "selene" [ "--no-default-features" ] ]
35 32 [ "stylua" "stylua" [ "--features" "lua52" ] ]
36 33 [ "taplo-cli" "taplo" [] ]
37 - [ "lms" "lms" [] ]
38 - [ "gitu" "gitu" [ "--locked" ] ]
39 - [ "yazi-fm" "yazi" [ "--locked" ] ]
34 + [ "tealdeer" "tldr" [] ]
35 + [ "tokei" "tokei" [] ]
36 + [ "viu" "viu" [] ]
37 + [ "vivid" "vivid" [] ]
40 38 [ "yazi-cli" "ya" [ "--locked" ] ]
39 + [ "yazi-fm" "yazi" [ "--locked" ] ]
40 + [ "zoxide" "zoxide" [] ]
43 43 # install all my favorite crate, only if they are not already in PATH.

topgrade/topgrade.linux.toml

Modified
44 44 "00 - Refresh Dotfiles" = "java ~/Workspace/dotfiles/bootstripper.java ~/Workspace/dotfiles"
46 46 # install tools from cargo, that are not already in path
47 -# TODO: this could be annoying when setting up a machine first time?
48 47 "01 - Install Cargo Tools" = "nu --env-config ~/.config/nushell/env.nu ~/Workspace/dotfiles/tools/cargo-tools.nu"

topgrade/topgrade.windows.toml

Modified
25 25 [git]
26 26 # Additional git repositories to pull
27 -repos = ["W:/*/"]
27 +repos = ["C:/Users/okr/Workspaces/*/"]
29 29 max_concurrency = 12
39 39 # Commands to run before anything
40 40 [pre_commands]
41 -"01 - Scoop Export" = "scoop export --config > 'X:/scoop_installed_apps.json' *> $null"
41 +"01 - Winget Export" = "winget export --disable-interactivity --accept-source-agreements --output 'C:/Users/okr/Tools/winget_installed_apps.json' *> $null"
43 43 [commands]
44 -"00 - Register Nu Plugins" = "nu -c 'register ~\\scoop\\apps\\nu\\current\\nu_plugin_gstat.exe'"
45 44 "10 - Refresh dotfiles" = "java W:/dotfiles/bootstripper.java W:/dotfiles"
46 45 "20 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu"
47 46 "30 - Advantage-PM Client" = "nu X:/update_apm_client.nu"

wezterm/bugabinga/workspaces.lua

Modified
4 4 local wez = require 'wezterm'
5 5 local mux = wez.mux
6 6 local win32 = wez.target_triple:find'windows'
8 8 local get_my_code_workspace = function()
9 9 if win32 then
10 - return 'W:/'
10 + return wez.home_dir .. '/Workspaces'
11 11 else
12 - return os.getenv 'HOME' .. '/Workspace'
12 + return wez.home_dir .. '/Workspace'
61 61 wez.on('gui-attached', function()
62 + -- setup_workspaces()
62 63 maximize_window()
63 64 end)
65 66 -- NOTE(oli): errors in here do not show up as configuration errors
66 67 -- check the log file in the wezterm mux server runtime directory
67 68 -- e.g. /run/user/1000/wezterm/log
68 -wez.on('mux-startup', function()
69 - setup_workspaces()
70 - maximize_window()
71 -end)
69 +-- NOTE: mux seems buggy and slow. not sure why or how to really repro
70 +-- wez.on('mux-startup', function()
71 +-- setup_workspaces()
72 +-- end)

wezterm/wezterm.lua

Modified
15 15 -- local font = wez.font 'IBM Plex Mono'
16 16 local font = wez.font 'Cousine'
17 17 if hostname == 'x230' then
18 - font_size = 13
18 + font_size = 11
19 19 enable_wayland = true
20 20 elseif hostname == 'NB-00718' then
21 - font_size = 15
21 + font_size = 13
22 22 elseif hostname == 'fedora' then
23 23 font_size = 13
24 24 local font_names = {}
100 100 default_cursor_style = 'SteadyBlock',
102 102 exec_domains = exec_domains,
103 - unix_domains = { { name = 'mux' } },
104 - default_gui_startup_args = { 'connect', 'mux' },
103 + -- unix_domains = { { name = 'mux' } },
104 + -- default_gui_startup_args = { 'connect', 'mux' },
106 106 font = font,
107 107 font_size = font_size,