mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-01-07 01:22:04 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
23 lines
478 B
Nu
23 lines
478 B
Nu
# Convert from contents of /proc/cpuinfo to structured data
|
|
export def "from cpuinfo" [] {
|
|
lines
|
|
| split list ''
|
|
| each {
|
|
split column ':'
|
|
| str trim
|
|
| update column1 {
|
|
get column1
|
|
| str replace -a ' ' '_'
|
|
}
|
|
| transpose -r -d
|
|
| update flags {
|
|
get flags
|
|
| split row ' '
|
|
}
|
|
| update bugs {
|
|
get bugs
|
|
| split row ' '
|
|
}
|
|
}
|
|
}
|