]> apps.delaporte.us Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Shortcut to find large files.
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 759d65518ced91a7f5493ef534124d06e3266009..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
@@ -52,11 +56,23 @@ function Start-DockerJuiceShop() {
 }
 
 # Import some home grown PowerShell modules, if they are installed.
-$modPaths = @("C:\src\toybox\toybox.psm1")
+$modPaths = @("C:\src\dotfiles\ToyBox\toybox.psm1")
 $modPaths | ForEach-Object {
-  Write-Host $_
   $_ | Format-Table
   if(Test-Path -Path $_) {
     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