2 # . C:\src\dotfiles\Microsoft.PowerShell_profile.ps1
6 # Get-ChildItem -Path 'C:\Repos' -Filter "*.psd1" -Recurse | ForEach-Object -Process {
7 # $Path = Split-Path -Path $_.Directory -Parent
8 # $env:PSModulePath = $env:PSModulePath + ";$($Path)"
10 $env:PSModulePath = $env:PSModulePath.Replace("\\ad.uillinois.edu\techsvc\home\$($ENV:USERNAME)\Documents\PowerShell\Modules;",'')
12 if($IsWindows -eq "") {
13 # Bootstrap for older PowerShell
14 $IsWindows = ($env:OS -eq "Windows_NT")
17 # Some Paths that are annoying to find/restore if the installer fails
18 $ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all
19 $ENV:PATH+=";C:\Program Files\Git\cmd" # Version control is nice.
20 $ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice.
21 $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in.
24 # Import some home grown PowerShell modules, if they are installed.
25 $modPaths = @("C:\src\dotfiles\ToyBox\toybox.psm1")
26 $modPaths | ForEach-Object {
28 if(Test-Path -Path $_) {
30 Write-Host "Loaded $_"
34 # Linux-like up/down in shell
35 Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
36 Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
37 Set-PSReadlineOption -HistorySavePath c:\temp\PSHistory.log
39 . C:\src\minion\minion_ps_alias.ps1