mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-04-30 11:51:42 +01:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export def main [] {
|
||||
{
|
||||
"kernel": $nu.os-info.kernel_version,
|
||||
"nu": $env.NU_VERSION,
|
||||
"packages": (ls /etc/profiles/per-user | select name | prepend [[name];["/run/current-system/sw"]] | each { insert "number" (nix path-info --recursive ($in | get name) | lines | length) | insert "size" ( nix path-info -S ($in | get name) | parse -r '\s(.*)' | get capture0.0 | into filesize) | update "name" ($in | get name | parse -r '.*/(.*)' | get capture0.0 | if $in == "sw" {"system"} else {$in}) | rename "environment"}),
|
||||
"uptime": (sys host).uptime
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user