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
Modified14 14 [
target.
x86_64-unknown-linux-gnu]
17 -rustflags = [
"-C",
"link-arg=--ld-path=/usr/bin/mold"]
17 +rustflags = [
"-C",
"link-arg=--ld-path=mold"]
nushell/modules/aliases.nu
Modified 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
8 9 export alias backup = bak
tools/cargo-tools.nu
Modified 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" [] ]
38 36 [
"lychee" "lychee" [] ]
40 38 [
"vivid" "vivid" [] ]
41 - [
"licensor" "licensor" [] ]
43 39 [
"silicon" "silicon" [] ]
44 40 [
"bottom" "btm" [] ]
50 46 [
"stylua" "stylua" [
"--features" "lua52" ] ]
51 47 [
"taplo-cli" "taplo" [] ]
53 - [
"coreutils" "coreutils" (coreutils-features) ]
56 -def coreutils-features [] {
57 - if $nu.os-info.family ==
'windows' {
58 - [
"--features" "windows" ]
60 - [
"--features" "unix" ]
65 - if $nu.os-info.family ==
'windows' {
66 - [
"--no-default-features" "--features" "windows" ]
54 + if (sys).host.name ==
"NixOS" {
56 + if (which akku | is-empty) {
57 + echo $
'cargo install akku' 58 + cargo install --git https://github.com/bugabinga/akku
60 + echo $
"akku already installed" 74 63 $cargo_crates |
each { | crate |
75 64 if ( which
$crate.bin | is-empty ) {
76 65 echo $
'cargo install ($crate.name) ($crate.features)'