Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
b1f3fe131f7ecee1799f8566755dbdc38df184c2
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 5f1fd02dbfef · Showing diff
- Parent 2: 63d26b0946a7 · Diff against parent 2
bugabingas dorkfiles
b1f3fe131f7ecee1799f8566755dbdc38df184c2
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+105 / −351 text lines
+34 / −34 text lines
cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" " cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" " cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" " cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "+3 / −0 text lines
+2 / −2 text lines
+3 / −2 text lines
+10 / −200 text lines
# TODO: use nugu colors sync_on_enter: true # Enable to share the history between multiple sessions, else you have to close the session to persist history to file menus: [ # Configuration for default nushell menus # Note the lack of source parameter { name: completion_menu only_buffer_difference: false marker: "| " type: { layout: columnar columns: 4 # col_width: 20 # Optional value. If missing all the screen width is used to calculate column width col_padding: 2 } style: { text: green selected_text: green_reverse description_text: yellow } } { name: history_menu only_buffer_difference: true marker: "? " type: { layout: list page_size: 10 } style: { text: green selected_text: green_reverse description_text: yellow } } { name: help_menu only_buffer_difference: true marker: "? " type: { layout: description columns: 4 col_width: 20 # Optional value. If missing all the screen width is used to calculate column width col_padding: 2 selection_rows: 4 description_rows: 10 } style: { text: green selected_text: green_reverse description_text: yellow } } # Example of extra menus created using a nushell source # Use the source field to create a list of records that populates # the menu { name: commands_menu only_buffer_difference: false marker: "# " type: { layout: columnar columns: 4 col_width: 20 col_padding: 2 } style: { text: green selected_text: green_reverse description_text: yellow } source: { |buffer, position| $nu.scope.commands | where command =~ $buffer | each { |it| {value: $it.command description: $it.usage} } } } { name: vars_menu only_buffer_difference: true marker: "# " type: { layout: list page_size: 10 } style: { text: green selected_text: green_reverse description_text: yellow } source: { |buffer, position| $nu.scope.vars | where name =~ $buffer | sort-by name | each { |it| {value: $it.name description: $it.type} } } } { name: commands_with_description only_buffer_difference: true marker: "# " type: { layout: description columns: 4 col_width: 20 col_padding: 2 selection_rows: 4 description_rows: 10 } style: { text: green selected_text: green_reverse description_text: yellow } source: { |buffer, position| $nu.scope.commands | where command =~ $buffer | each { |it| {value: $it.command description: $it.usage} } } } ] keybindings: [ { name: completion_menu modifier: none keycode: tab mode: emacs # Options: emacs vi_normal vi_insert event: { until: [ { send: menu name: completion_menu } { send: menunext } ] } } { name: completion_previous modifier: shift keycode: backtab mode: [emacs, vi_normal, vi_insert] # Note: You can add the same keybinding to all modes by using a list event: { send: menuprevious } } { name: history_menu modifier: control keycode: char_x mode: emacs event: { until: [ { send: menu name: history_menu } { send: menupagenext } ] } } { name: history_previous modifier: control keycode: char_z mode: emacs event: { until: [ { send: menupageprevious } { edit: undo } ] } } # Keybindings used to trigger the user defined menus { name: commands_menu modifier: control keycode: char_t mode: [emacs, vi_normal, vi_insert] event: { send: menu name: commands_menu } } { name: vars_menu modifier: control keycode: char_y mode: [emacs, vi_normal, vi_insert] event: { send: menu name: vars_menu } } { name: commands_with_description modifier: control keycode: char_u mode: [emacs, vi_normal, vi_insert] event: { send: menu name: commands_with_description } } ]+4 / −13 text lines
new file mode 100644+5 / −0 text lines
+7 / −4 text lines
let svn_relative_cmd = ( do --ignore-errors { ^svn info --show-item relative-url --no-newline $pwd | complete } ) 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)" }deleted file mode 100644+0 / −59 text lines
# Code generated by zoxide. DO NOT EDIT.# =============================================================================## Hook configuration for zoxide.## Initialize hook to add new entries to the database.export-env { $env.config = ($env | default {} config).config $env.config = ($env.config | default {} hooks) $env.config = ($env.config | update hooks ($env.config.hooks | default [] pre_prompt)) $env.config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append { || zoxide add -- $env.PWD }))}# =============================================================================## When using zoxide with --no-cmd, alias these internal functions as desired.## Jump to a directory using only keywords.export def --env __zoxide_z [...rest:string] { # `z -` does not work yet, see https://github.com/nushell/nushell/issues/4769 let arg0 = ($rest | append '~').0 let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) { $arg0 } else { (zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n") } cd $path}# Jump to a directory using interactive search.export def --env __zoxide_zi [...rest:string] { cd $'(zoxide query -i -- ...$rest | str trim -r -c "\n")'}# =============================================================================## Commands for zoxide. Disable these using --no-cmd.#export alias z = __zoxide_zexport alias zi = __zoxide_zi# =============================================================================## Add this to your env file (find it by running `$nu.env-path` in Nushell):## zoxide init nushell --hook prompt | save ~/.zoxide.nu## Now, add this to the end of your config file (find it by running# `$nu.config-path` in Nushell):## source ~/.zoxide.nu## Note: zoxide only supports Nushell v0.63.0 and above.+23 / −23 text lines
[ "git-delta" "delta" [] ]+0 / −1 text lines
# TODO: this could be annoying when setting up a machine first time?+2 / −3 text lines
"01 - Scoop Export" = "scoop export --config > 'X:/scoop_installed_apps.json' *> $null""01 - Winget Export" = "winget export --disable-interactivity --accept-source-agreements --output 'C:/Users/okr/Tools/winget_installed_apps.json' *> $null""00 - Register Nu Plugins" = "nu -c 'register ~\\scoop\\apps\\nu\\current\\nu_plugin_gstat.exe'"+7 / −5 text lines
-- setup_workspaces()+5 / −5 text lines