Closed webmaster442 closed 5 months ago
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
function RemoveBinObj { $directories = Get-ChildItem -Directory -Recurse | Where-Object { $_.Name -eq "bin" -or $_.Name -eq "obj" } foreach ($directory in $directories) { Write-Host "Deleting $($directory.FullName)" -ForegroundColor Yellow Remove-Item $directory.FullName -Recurse -Force } Write-Host "Cleanup complete!" -ForegroundColor Green } RemoveBinObj
if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force }
notepad $PROFILE
# PowerShell parameter completion shim for the dotnet CLI Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock { param($wordToComplete, $commandAst, $cursorPosition) dotnet complete --position $cursorPosition "$commandAst" | ForEach-Object { [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) } }