mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-01-19 23:02:05 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
14 lines
282 B
Nu
14 lines
282 B
Nu
# converts records into .ini files
|
|
export def "to ini" [] {
|
|
transpose key value
|
|
| update value {|row|
|
|
$row.value
|
|
| transpose key value
|
|
| format pattern "{key}={value}"
|
|
| prepend $"[($row.key)]"
|
|
| str join (char nl)
|
|
}
|
|
| get value
|
|
| str join (char nl)
|
|
}
|