dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide CI runs nu: update to new config version
6b0b26278158f31c7636578d97ad9303d9a9bd4f
Oliver Krylow <o.krylow@isp-insoft.de > · 26 Sep 2022
unsigned
Browse files Compare with HEAD
Changed files (11) Diff layout Auto Unified Split
PC-00625.symlinks Modified +1 / −1 text lines
20 20 ~/AppData/Roaming/Subversion/config~/AppData/Roaming/Subversion/config22 22 cargo/config.tomlcargo/config.toml23 + ~/scoop/persist/rustup/ .cargo/config.toml25 25 indexa/config.windows.tomlindexa/config.windows.toml26 26 ~/AppData/Roaming/indexa/config.toml~/AppData/Roaming/indexa/config.tomlhelix/config.toml Modified +15 / −2 text lines
17 17 scrolloff = 5 scrolloff = 5 18 18 scroll-lines = 1 scroll-lines = 1
21 + gutters = [ "line-numbers" , "diagnostics" , "spacer" ]25 + left = ["mode" , "spacer" ,"selections" , "position" , "separator" , "position-percentage" ]26 + center = ["file-name" , "separator" , "file-encoding" , "file-line-ending" , "file-type" ]27 + right = ["diagnostics" , "spacer" , "spinner" ]20 30 [editor .lsp ][editor .lsp ]21 31 display-messages = true display-messages = true 34 44 newline = "none" newline = "none" 36 46 [editor .whitespace .characters ][editor .whitespace .characters ]helix/themes/nugu.toml Modified +3 / −3 text lines
46 46 "ui.cursor" = { bg = "ui_cursor" }"ui.cursor" = { bg = "ui_cursor" }47 47 "ui.cursor.primary" = { fg = "important_global" , bg = "ui_cursor" }"ui.cursor.primary" = { fg = "important_global" , bg = "ui_cursor" }48 - "ui.cursor.insert" = { bg = "debug " }49 - "ui.cursor.select" = { fg = "debug " , bg = "debug " }48 + "ui.cursor.insert" = { bg = "accent " }49 + "ui.cursor.select" = { fg = "accent " , bg = "accent " }50 50 "ui.cursor.match" = { fg = "important_global" , modifiers = ["slow_blink" ] }"ui.cursor.match" = { fg = "important_global" , modifiers = ["slow_blink" ] }52 52 "ui.selection" = { fg = "minor" , bg = "ui_minor" }"ui.selection" = { fg = "minor" , bg = "ui_minor" }80 80 "ui.highlight" = { bg = "ui_cursor" }"ui.highlight" = { bg = "ui_cursor" }82 82 "ui.virtual.ruler" = { bg = "ui_backdrop" }"ui.virtual.ruler" = { bg = "ui_backdrop" }83 - "ui.virtual.whitespace" = { fg = "minor" , modifiers = ["dim" ] }83 + "ui.virtual.whitespace" = { fg = "minor_backdrop" }85 85 "diagnostic" = { fg = "ui_normal" , modifiers = ["underlined" ] }"diagnostic" = { fg = "ui_normal" , modifiers = ["underlined" ] }neovim/lua/bugabinga/treesitter.lua Modified +2 / −2 text lines
11 11 } (function (install, configs, parsers, hlargs, neogen)} (function (install, configs, parsers, hlargs, neogen)12 - install.compilers = { 'zig cc ' , 'clang' , 'gcc' , 'cl' , 'cc' , vim.fn.getenv 'CC' }13 - install.prefer_git = true 12 + install.compilers = { 'zig' , 'clang' , 'gcc' , 'cl' , 'cc' , vim.fn.getenv 'CC' }15 15 configs.setup { configs.setup {nushell/config.nu Modified +1 / −0 text lines
69 69 let -env config = {let -env config = {70 71 filesize_metric: false filesize_metric: false71 72 table_mode: light table_mode: light 72 73 use_ls_colors: true use_ls_colors: true+0 / −7 text lines
5 5 let -env DOTFILES = ( $env.NURC_DIR | path join ".." | path expand )let -env DOTFILES = ( $env.NURC_DIR | path join ".." | path expand )6 6 let -env WORKSPACE = if $env.WIN32 ? { "W:/" } else { "~/Workspace" | path expand }let -env WORKSPACE = if $env.WIN32 ? { "W:/" } else { "~/Workspace" | path expand }7 7 let -env NOTES = if $env.WIN32 ? { "N:/" } else { "~/Notes" | path expand }let -env NOTES = if $env.WIN32 ? { "N:/" } else { "~/Notes" | path expand }8 - let -env CARGO_HOME = ( "~/.cargo" | path expand )
11 10 let -env LS_COLORS = (vivid generate nord)let -env LS_COLORS = (vivid generate nord)30 29 ($nu.config-path | path dirname | path join 'modules' ), ($nu.config-path | path dirname | path join 'modules' ),31 30 ($nu.config-path | path dirname | path join 'completions' ) ($nu.config-path | path dirname | path join 'completions' )35 - let -env NU_PLUGIN_DIRS = [36 - ($nu.config-path | path dirname | path join 'plugins' ),37 - ($env.CARGO_HOME | path join 'bin' ),
nushell/modules/prompt.nu Modified +3 / −3 text lines
24 24 let pwd = ($env.PWD | path expand) let pwd = ($env.PWD | path expand)25 25 let z_jump = ( do --ignore-errors { zoxide query --exclude $pwd -- $rest } ) let z_jump = ( do --ignore-errors { zoxide query --exclude $pwd -- $rest } )27 - if ($z_jump | empty? ) {27 + if ($z_jump | is- empty) {28 28 error make { error make {29 29 msg: "Zoxide could not find any match for the given query." , msg: "Zoxide could not find any match for the given query." ,63 63 def set-window-title [] {def set-window-title [] {65 65 let pwd = ( $env.PWD | path expand ) let pwd = ( $env.PWD | path expand )66 - let icon = if (icons | any? path == $pwd ) { ( icons | where path == $pwd | get icon.0 ) } else { $"(char nf_folder1)" }66 + let icon = if (icons | any path == $pwd ) { ( icons | where path == $pwd | get icon.0 ) } else { $"(char nf_folder1)" }68 - if (env | any? name == TERM_PROGRAM) && $env.TERM_PROGRAM == WezTerm {68 + if (env | any name == TERM_PROGRAM) && $env.TERM_PROGRAM == WezTerm {69 69 echo ([ (ansi title) $icon " " ( $pwd | path basename ) (ansi reset) ] | str collect) echo ([ (ansi title) $icon " " ( $pwd | path basename ) (ansi reset) ] | str collect)nushell/modules/table.nu Modified +1 / −1 text lines
2 2 export def "has-column?" [export def "has-column?" [3 3 name: string name: string 5 - transpose | any? Column0 == $name 5 + transpose | any Column0 == $name tools/cargo-tools.nu Modified +15 / −11 text lines
7 7 let cargo_crates = [let cargo_crates = [8 8 [ name bin features]; [ name bin features];9 9 [ "sccache" "sccache" [] ] [ "sccache" "sccache" [] ]10 - [ "inferno" "inferno" [] ]10 + [ "inferno" "inferno-flamegraph " [] ]11 11 [ "nu" "nu" [ "--features" "extra" ] ] [ "nu" "nu" [ "--features" "extra" ] ]12 12 [ "sd" "sd" [] ] [ "sd" "sd" [] ]13 13 [ "ouch" "ouch" [] ] [ "ouch" "ouch" [] ]35 35 [ "lychee" "lychee" [] ] [ "lychee" "lychee" [] ]36 36 [ "viu" "viu" [] ] [ "viu" "viu" [] ]
37 + [ "vivid" "vivid" [] ]37 38 [ "licensor" "licensor" [] ] [ "licensor" "licensor" [] ]38 39 [ "gib" "gib" [] ] [ "gib" "gib" [] ]39 40 [ "silicon" "silicon" [] ] [ "silicon" "silicon" [] ]67 68 def install-helix-editor [] {def install-helix-editor [] {68 69 cd $env.WORKSPACE cd $env.WORKSPACE 69 - if ( $env.WORKSPACE | path join "helix/.git" | path exists ) {70 + if ( not ( $env.WORKSPACE | path join "helix/.git" | path exists) ) {72 71 git clone https://github.com/helix-editor/helix git clone https://github.com/helix-editor/helix75 - cargo install --locked -- path helix-term76 - hx --grammar fetch | ignore77 - hx --grammar build | ignore76 + if (not ((git rev-parse HEAD) == (git rev-parse @{u}))) {78 + cargo +stable-msvc install --path helix-term --profile opt 79 + hx --grammar fetch | ignore80 + hx --grammar build | ignore81 85 def main [] {def main [] {82 86 $cargo_crates | each { | crate | $cargo_crates | each { | crate |83 - if ( which $crate.bin | empty? ) {84 - echo $'cargo install --locked ($crate.name) ($crate.features)' 85 - cargo install --locked $crate.name $crate.features 87 + if ( which $crate.bin | is- empty ) {88 + echo $'cargo install ($crate.name) ($crate.features)' 89 + cargo install $crate.name $crate.features 87 91 echo $"($crate.name) already installed" echo $"($crate.name) already installed" topgrade/topgrade.windows.toml Modified +3 / −2 text lines
2 + disable = ["wsl" , " vim " ]4 4 assume_yes = true assume_yes = true 39 39 [pre_commands ][pre_commands ]40 - "01 - Winget Backup" = "winget export --source winget 'D:/Tools/winget_installed_apps.json' *> $null" 40 + "01 - Scoop Export" = "scoop export --config > 'X:/scoop_installed_apps.json' *> $null" 43 43 "00 - Refresh dotfiles" = "java W:/dotfiles/bootstripper.java W:/dotfiles" "00 - Refresh dotfiles" = "java W:/dotfiles/bootstripper.java W:/dotfiles" 44 44 "01 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu" "01 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu" 45 45 "02 - Advantage-PM Client" = "nu X:/update_apm_client.nu" "02 - Advantage-PM Client" = "nu X:/update_apm_client.nu" 46 46 "03 - MeMate" = "nu X:/update_memate.nu" "03 - MeMate" = "nu X:/update_memate.nu"
47 + "04 - TLDR" = "tldr --update" wezterm/wezterm.lua Modified +3 / −2 text lines
8 8 local enable_wayland = false local enable_wayland = false 9 9 local window_decorations = 'RESIZE' local window_decorations = 'RESIZE' 10 10 local font_size = 11.0 local font_size = 11.0 11 - local font = wez.font('BlexMono Nerd Font' , { weight = 'Regular' , stretch = 'Condensed' })11 + local font = wez.font('IBM Plex Mono' )13 13 if hostname == 'x230' then if hostname == 'x230' then 14 14 enable_wayland = true enable_wayland = true 16 16 elseif hostname == 'pop-os' thenelseif hostname == 'pop-os' then17 17 font_size = 12 font_size = 12 18 18 elseif hostname == 'PC-00625' thenelseif hostname == 'PC-00625' then20 + font = wez.font('Cascadia Mono' )20 21 window_decorations = 'TITLE|RESIZE' window_decorations = 'TITLE|RESIZE'