X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/3eb06344159ed95d574c8b3f470e6d642a4742b3..5a6f185b2159c696c3dab735d6428c63d7ef661e:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index cea5a71..8c9c6a1 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -13,6 +13,10 @@ $ENV:PATH+=";C:\Program Files\nodejs" # KataKoda wants to add tools via npm $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 +} + function Start-Vault() { consul agent -dev # Run in Dev Mode @@ -59,4 +63,16 @@ $modPaths | ForEach-Object { Import-Module $_ Write-Host "Loaded $_" } +} + +function Start-DockerPython3Bash { + docker run -it python /bin/bash +} + +function Start-DockerPython2Bash { + docker run -it python:2-buster /bin/bash +} + +function Stop-Docker { + docker stop $(docker ps -a -q) } \ No newline at end of file