$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
}
# 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"
+# }
+# }
+# }
# Unix dies hard.
New-Alias which get-command
+New-Alias rm Remove-Item
# Delay loading PoshGit for speed.
function Enable-PoshGit {