mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-29 17:02:03 +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,13 @@
|
||||
# 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)
|
||||
}
|
||||
Reference in New Issue
Block a user