X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/221d984195390c9dc955082c1694e8e00db0c4fd..d9d47f8ef207fe6d89a64d942c7b3fce58a0ad15:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 5f667a0..02abc31 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -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