X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/bdade147187076b7af3b5651851cfd02cc36beae..c4d85b771119e8cffdba6169c62d49d44d7bb7e5:/files/Microsoft.PowerShell_profile.ps1 diff --git a/files/Microsoft.PowerShell_profile.ps1 b/files/Microsoft.PowerShell_profile.ps1 index 8f1c88b..3cba1b5 100644 --- a/files/Microsoft.PowerShell_profile.ps1 +++ b/files/Microsoft.PowerShell_profile.ps1 @@ -26,6 +26,7 @@ if($IsWindows){ $ENV:PATH+=";$env:src\flutter\bin" # Flutter for Dart } else { + $ENV:PATH+=";$env:src/bin" # anything else I need $ENV:PATH+=":$HOME/x16/x16-emulator" # x16 Emulator $ENV:PATH+=":$HOME/src/x16-demo/tools" # x16 python tools } @@ -40,30 +41,34 @@ $env:todolist = "C:\Users\delaport\Journal\" # alias renumber $HOME/src/x16-demo/ $env:Journal = "~\Journal" # allows cd $env:journal -$env:minion = "$env:src\minion" +# $env:minion = "$env:src\minion" # Import some home grown PowerShell modules, if they are installed. # $modPaths = Get-Childitem -ErrorAction Ignore -Path "$env:src\dotfiles\psmodules" -$modPaths += Get-Childitem -ErrorAction Ignore -Path "$env:minion\psmodule" +# $modPaths += Get-Childitem -ErrorAction Ignore -Path "$env:minion\psmodule" # https://github.com/uillinois-community/powershell-scripts -$modPaths += Get-Childitem -ErrorAction Ignore -Path "$env:src\powershell-scripts\modules" +# $modPaths += Get-Childitem -ErrorAction Ignore -Path "$env:src\powershell-scripts\modules" # Windows Only Modules -if($IsWindows){ - $modPaths += Get-Childitem -ErrorAction Ignore -Path "$env:src\dotfiles\win_psmodules" -} -if($modPaths.length -eq 0){ - Write-Host "No modules found." -} -$modPaths | ForEach-Object { - $fileName = $_.FullName - if($filename -Like "*.psm1") { - Import-Module $fileName - Write-Host ">> Loaded $fileName" - } -} +# if($IsWindows){ +# $modPaths += Get-Childitem -ErrorAction Ignore -Path "$env:src\dotfiles\win_psmodules" +# } +# if($modPaths.length -eq 0){ +# Write-Host "No modules found." +# } + +# $enabledMods = 'dash.psm1','docker.psm1'; +# $modPaths | ForEach-Object { +# $fileName = $_.FullName +# if($enabledModules -Contains $_.Name ){ +# if($filename -Like "*.psm1") { +# Import-Module $fileName +# Write-Host ">> Loaded $fileName" +# } +# } +# } @@ -85,6 +90,7 @@ Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log # Unix dies hard. New-Alias which get-command +# New-Alias rm Remove-Item # Delay loading PoshGit for speed. function Enable-PoshGit {