Category Archives: PowerShell

How To Clean SVN Checkout Directory

I just love git clean -xfd but you just don’t get that with Subversion. Instead from your Bash shell (or Cygwin) prompt you can do: svn status –no-ignore | egrep ‘^[?I]’ | cut -c9- | sudo xargs -d \\n rm … Continue reading

Posted in Bash, PowerShell | Leave a comment

PowerShell v2 Snippets

Here is a new, hopefully ever expanding library of PowerShell snippets. Set PowerShell Current Working Directory To set current working directory to current directory currently navigated to use [IO.Directory]::SetCurrentDirectory((Convert-Path (Get-Location -PSProvider FileSystem))) or [Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath These snippets are from: … Continue reading

Posted in PowerShell, Snippets | Tagged | Leave a comment