This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-Expression (&starship init powershell) | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
function ^ {explorer.exe .} | |
function now { | |
$now = Get-Date -Format "o" | |
Set-Clipboard $now | |
Write-Output $now | |
} | |
function gitconf {code $HOME/.gitconfig} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { extract } from "https://deno.land/std@0.162.0/encoding/front_matter/any.ts"; | |
import { join } from "https://deno.land/std@0.162.0/path/mod.ts"; | |
const targetDir = "content"; | |
const fileList: string[] = []; | |
function findFile(directory: string) { | |
for (const dirEntry of Deno.readDirSync(directory)) { | |
const fullPath = join(directory, dirEntry.name); |