Modularize zsh dotfiles, add colemak bindkey

This commit is contained in:
js0ny 2024-10-30 16:42:32 +00:00
parent 4e6519772d
commit dc7611825a
16 changed files with 206 additions and 526 deletions

View file

@ -1,17 +0,0 @@
function CsvToMarkdown {
param( [string]$csv)
$counter = 0
$column = $csv.Split("`n")[0].Split(",").Length
$aHeader = " --- |"
$header = "|" + $aHeader * $column
$csv.replace(",", " | ").Split("`n") | ForEach-Object {
if ($counter -eq 0) {
Write-Output "| $_ |"
$counter++
Write-Output $header
}
else {
Write-Output "| $_ |"
}
}
}