]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Shortcut to find large files.
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 5f667a0095f795053dbb22dc4f6d978874f5329a..02abc31fff3658fcd77cbc465345b9ea7997b641 100644 (file)
@@ -1,4 +1,11 @@
 
+
+## Setup reminder:
+# code $profile
+# Set-ExecutionPolicy RemoteSigned
+# . C:\src\dotfiles\Microsoft.PowerShell_profile.ps1
+
+
 Import-Module posh-git
 # Courtesty of MKletz
 # Get-ChildItem -Path 'C:\Repos' -Filter "*.psd1" -Recurse | ForEach-Object -Process {
@@ -21,6 +28,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
@@ -155,4 +166,15 @@ Function ConvertTo-ASCIIArt {
   End {
       Write-Verbose "[$((Get-Date).TimeofDay) END    ] Ending $($myinvocation.mycommand)"
   } #end
-}
\ No newline at end of file
+}
+
+
+#### User Configuraable Variables ####
+## https://github.com/techservicesillinois/Powershell-SupportApp
+
+# Customize the title bar of your console.
+[string]$SA_title="PowerShell Support App for U of I"
+# Path to a text editor
+[string]$SA_TextEditor="C:\Program Files (x86)\Notepad++\notepad++.exe"
+$SA_Config_base=$true
+import-module .\PowerShellSupportAppV2\PowerShellSupportAppV2.psm1
\ No newline at end of file