function LinkDotfile($target, $source) { New-Item -Force -Path $target -ItemType SymbolicLink -Value "$((Get-Location).path)\$source" } function EnsureDirectory($dir) { New-Item -Force -ItemType Directory $dir } LinkDotfile $profile "windows\profile.ps1" EnsureDirectory ~\.config EnsureDirectory ~\AppData\Local\clink LinkDotFile ~\.config\mise mise LinkDotFile ~\.default-go-packages default-go-packages LinkDotfile ~\.gitconfig windows\gitconfig LinkDotfile ~\.wslconfig windows\wsl.conf LinkDotfile ~\AppData\Local\clink\oh-my-posh.lua windows\oh-my-posh.lua LinkDotfile ~\AppData\Roaming\helix helix LinkDotfile ~\AppData\Roaming\jj jj