# $env:PSModulePath = $env:PSModulePath.Replace("\\ad.uillinois.edu\techsvc\home\$($ENV:USERNAME)\Documents\PowerShell\Modules;",'')
# No longer needed in PowerShell 7
- if($IsWindows -eq "") {
+ if(-Not $IsWindows) {
# Bootstrap for older PowerShell
Write-Host "***Bootstrapped Is Windows for older PowerShell***"
$IsWindows = ($env:OS -eq "Windows_NT")
$ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all
$ENV:PATH+=";C:\Program Files\Git\cmd" # Version control is nice.
$ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice.
+ $ENV:PATH+=";C:\bin\x16emu" # Package management is nice.
$ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in.
}
New-Alias pg Enable-PoshGit
Write-Host "+ Type 'pg' to enable PoshGit"
+function Invoke-X16Emu {
+ param(
+ [string]$File
+ )
+ x16emu.exe -bas $File -keymap en-us
+}
+
+New-Alias x16 Invoke-X16Emu
if((Get-Location).Path -eq $HOME){
cd $env:src
}
+
+ function Get-GitLog() {
+ git log --oneline
+ }
+
+ function Get-GitStatus() {
+ git status -b --short
+ }
+
+ New-Alias ol Get-GitLog
+ New-Alias st Get-GitStatus
}
}
+ function Show-DrivespacePretty() {
+ Start-Job -Name "FileCollection" -ScriptBlock { Show-Drivespace }
+ While((Get-Job -Name "FileCollection").State -eq "Running") {
+ Write-Progress -Activity "Collecting Files..." -PercentComplete $x
+ If($x -eq 100){
+ $x = 1
+ }
+ Else{
+ $x += 1
+ }
+ }
+ Write-Progress -Activity "Collecting Files..." -Completed
+ $Files = Get-Job -Name "FileCollection" | Receive-Job
+ Get-Job -Name "FileCollection" | Remove-Job
+ }
Export-ModuleMember -Function Show-Drivespace
-Export-ModuleMember -Function Show-DrivespacePretty
Export-ModuleMember -Function Show-LargeFiles