X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/d9d47f8ef207fe6d89a64d942c7b3fce58a0ad15..e68a53cd3ce450d24d59098189f5343895aec2f7:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 02abc31..7f54a1d 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -29,7 +29,11 @@ $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in. function Find-LargeFiles() { - Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length, Location + Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length, FullName +} + +function List-DriveSpace() { + Get-PSDrive C | Select-Object Used,Free } @@ -113,6 +117,11 @@ function Start-DockerFindSecrets { docker run -v /c/src:/etc/src dxa4481/trufflehog /etc/src/SecOps-Tools } +function Export-VSCodeExtensions { + code --list-extensions | Out-File -FilePath /src/dotfiles/vscode-extensions.txt + Get-Content -Path /src/dotfiles/vscode-extensions.txt +} + #requires -version 5.1 #ConvertTo-ASCIIArt.ps1