]> apps.delaporte.us Git - dotfiles.git/blobdiff - files/Microsoft.PowerShell_profile.ps1
More cleanup
[dotfiles.git] / files / Microsoft.PowerShell_profile.ps1
index 3cbce8b66be0f43090e899dc4a344936f5f751b3..1706ede289f3725e07fd6458caa2280f4e4610cc 100644 (file)
@@ -41,30 +41,34 @@ $env:todolist = "C:\Users\delaport\Journal\"
 # alias renumber $HOME/src/x16-demo/
 
 $env:Journal = "~\Journal" # allows cd $env: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"
 
 # 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
 
 # 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
 
 # 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"
+#              }
+#      }
+# }
 
 
 
 
 
 
@@ -86,6 +90,7 @@ Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log
 
 # Unix dies hard.
 New-Alias which get-command
 
 # Unix dies hard.
 New-Alias which get-command
+New-Alias rm Remove-Item
 
 # Delay loading PoshGit for speed. 
 function Enable-PoshGit {
 
 # Delay loading PoshGit for speed. 
 function Enable-PoshGit {