]> apps.delaporte.us Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Shortcut to find large files.
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index e2aef9c6850353598df0307dd0e52ea5dd7d9958..8c9c6a1093186ef3303b33da7d51c42274d4e616 100644 (file)
@@ -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
@@ -67,4 +71,8 @@ function Start-DockerPython3Bash {
 
 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