dotfiles
bugabingas dorkfiles
owned by bugabinga
cargo-tools: install crate only if binary not in PATH
1631ab2993f1771b0a91ba982e2e53d4c5114d7f
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
Browse filesCompare with HEAD
Changed files (7)
20 20 1. Install Build Tools with C++ Option (for Rust and cargo tools)
21 21 1. Install Git without internal SSH
22 22 1. Start ssh-agent service
23 +1. Enable `UTF-8` in regional settings
nushell/config.nu
Modified 74 74 color_config:
$default_theme 75 75 use_grid_icons: true
76 76 footer_mode:
"auto" 77 - quick_completions: false
78 - partial_completions: false
77 + quick_completions: true
78 + partial_completions: true
79 79 animate_prompt: false
81 81 use_ansi_coloring: true
5 5 let-env WIN32? =
$nu.os-info.name =~
"windows" 6 6 let-env NURC_DIR = (
$nu.config-path| path expand | path dirname)
7 7 let-env DOTFILES = (
$env.NURC_DIR| path join
".." | path expand)
8 -let-env WORKSPACE =
if $env.WIN32? {
"W:/misc" }
else {
"~/Workspace" }
8 +let-env WORKSPACE =
if $env.WIN32? {
"W:/" }
else {
"~/Workspace" }
9 9 let-env CARGO_HOME =
if $env.WIN32? {
"C:/Users/okr/.cargo" }
else {
"~/.cargo" }
nushell/modules/aliases.nu
Modified 5 5 export alias view = bat
6 6 export alias list = exa --group-directories-first --classify --all --long --icons --git
7 7 export alias tree = exa --tree --group-directories-first
8 8 export alias look = xplr
9 9 export alias browse = firefox
10 -export def edit [ ...rest: string ] {
10 +export alias edit = code
22 - if ( which
"sudo" | empty? ) {
30 16 export alias aes = java (build-string
$env.DOTFILES /tools/ aes.java)
31 17 export alias download = java (build-string
$env.DOTFILES /tools/ download.java)
32 18 export alias download_jar = java (build-string
$env.DOTFILES /tools/ download_jar.java)
40 - ^start (build-string https://man.archlinux.org/man/ (
$rest | to-string))
50 - let query = (build-string
"https://duckduckgo.com/?q=" (
$rest | to-string))
tools/cargo-tools.nu
Modified 9 + [
"sccache" "sccache" []]
10 + [
"nu" "nu" [
"--features=extra"]]
16 + [
"onefetch" "onefetch" []]
18 + [
"mdcat" "mdcat" []]
19 + [
"cargo-update" "cargo-install-update" []]
20 + [
"hexyl" "hexyl" []]
21 + [
"hyperfine" "hyperfine" []]
22 + [
"so" "so" so-features]
23 + [
"tealdeer" "tldr" []]
24 + [
"tokei" "tokei" []]
26 + [
"pastel" "pastel" []]
27 + [
"diskonaut" "diskonaut" []]
28 + [
"menyoki" "menyoki" []]
29 + [
"zoxide" "zoxide" []]
32 + [
"comrak" "comrak" []]
34 + [
"linky" "linky" []]
36 + [
"licensor" "licensor" []]
38 + [
"silicon" "silicon" []]
45 + [
"--no-default-features" "--features=windows"]
32 51 let cargo_git_crates = [
33 52 "https://github.com/mosmeh/indexa" 36 55 def install-helix-editor [] {
38 - git clone https://github.com/helix-editor/helix
57 + if (
$env.WORKSPACE | path join
"helix/.git" | path exists ) {
60 + git clone https://github.com/helix-editor/helix
40 63 cargo install --locked --path helix-term
64 + hx --grammar fetch | ignore
65 + hx --grammar build | ignore
46 - $cargo_crates |
each { |crate|
47 - if ( which
$crate | empty? ) {
48 - cargo install --locked
$crate 70 + $cargo_crates |
each { | crate |
71 + if ( which
$crate.bin | empty? ) {
72 + echo $
'cargo install --locked ($crate.name) ($crate.features)' 73 + cargo install --locked
$crate.name $crate.features 50 - echo $
"($crate) already installed" 75 + echo $
"($crate.name) already installed" 54 80 $cargo_git_crates |
each { |crate|
55 81 cargo install --locked --git
$crate 58 83 install-helix-editor
topgrade/topgrade.linux.toml
Modified20 26 repos = [
"/home/oli/Workspace/*"]
topgrade/topgrade.windows.toml
Modified20 -repos = [
"W:/misc/*/",
"W:/*/"]
22 28 max_concurrency =
12 30 36 enable_winget =
true 40 +"00 - Refresh dotfiles" =
"java W:/dotfiles/bootstripper.java W:/dotfiles" 41 +"01 - Winget Backup" =
"winget export --source winget 'D:/Tools/winget_installed_apps.json' *> $null" 38 -"00 - Refresh dotfiles" =
"java W:/dotfiles/bootstripper.java W:/dotfiles" 40 45 "01 - Install Cargo Tools" =
"nu W:/dotfiles/tools/cargo-tools.nu"