repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

14f26d07c37b3787e7e3dd2cf7d94a8372b70307

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

cargo/config.toml

Modified
14 14 [target.x86_64-unknown-linux-gnu]
15 15 # not sure why that is necessary, but without it, rustc seems to pass wrong arguments to mold.
16 16 linker = "clang"
17 -rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold"]
17 +rustflags = ["-C", "link-arg=--ld-path=mold"]

nushell/modules/aliases.nu

Modified
2 2 # Semantic aliases
3 3 export alias show = bat
4 4 export def list [] { ls --all --long --du --mime-type | where type == dir | append (ls --all --long --du --mime-type | where type != dir) }
5 5 export alias web = firefox
6 -export alias edit = nvim
6 +export alias code = nvim
7 +export alias edit = nvim --clean
7 8 # TODO ewrite bak command
8 9 export alias backup = bak

tools/cargo-tools.nu

Modified
6 6 # is not installed yet
7 7 let cargo_crates = [
8 8 [ name bin features];
9 - [ "wiki-tui" "wiki-tui" [] ]
10 9 [ "sccache" "sccache" [] ]
11 10 [ "inferno" "inferno-flamegraph" [] ]
12 11 [ "nu" "nu" [ "--features" "extra" ] ]
22 21 [ "cargo-cache" "cargo-cache" [] ]
23 22 [ "hexyl" "hexyl" [] ]
24 23 [ "hyperfine" "hyperfine" [] ]
25 - [ "so" "so" (so-features) ]
26 24 [ "tealdeer" "tldr" [] ]
27 25 [ "tokei" "tokei" [] ]
28 26 [ "bat" "bat" [] ]
38 36 [ "lychee" "lychee" [] ]
39 37 [ "viu" "viu" [] ]
40 38 [ "vivid" "vivid" [] ]
41 - [ "licensor" "licensor" [] ]
42 - [ "gib" "gib" [] ]
43 39 [ "silicon" "silicon" [] ]
44 40 [ "bottom" "btm" [] ]
45 41 # [ "sic" "sic" [] ] some issue with ssl on win32?
50 46 [ "stylua" "stylua" [ "--features" "lua52" ] ]
51 47 [ "taplo-cli" "taplo" [] ]
52 48 [ "lms" "lms" [] ]
53 - [ "coreutils" "coreutils" (coreutils-features) ]
56 -def coreutils-features [] {
57 - if $nu.os-info.family == 'windows' {
58 - [ "--features" "windows" ]
59 - } else {
60 - [ "--features" "unix" ]
61 - }
62 -}
64 -def so-features [] {
65 - if $nu.os-info.family == 'windows' {
66 - [ "--no-default-features" "--features" "windows" ]
67 - } else {
68 - []
69 - }
70 -}
72 51 # install all my favorite crate, only if they are not already in PATH.
73 52 def main [] {
53 + # FIXME: nushell in NixOS cannot detect hostname?
54 + if (sys).host.name == "NixOS" {
55 + #if (sys).host.name == "x230" {
56 + if (which akku | is-empty) {
57 + echo $'cargo install akku'
58 + cargo install --git https://github.com/bugabinga/akku
59 + } else {
60 + echo $"akku already installed"
61 + }
62 + }
74 63 $cargo_crates | each { | crate |
75 64 if ( which $crate.bin | is-empty ) {
76 65 echo $'cargo install ($crate.name) ($crate.features)'