From 5463f0bc4036ebd2c568a4b6364b0f3c4edfcd32 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sat, 13 Mar 2021 16:58:34 -0600 Subject: [PATCH] Do not load Excel based module on Pi --- Microsoft.PowerShell_profile.ps1 | 7 ++++++- {psmodules => win_psmodules}/Teams2Markdown.psd1 | Bin {psmodules => win_psmodules}/Teams2Markdown.psm1 | 0 3 files changed, 6 insertions(+), 1 deletion(-) rename {psmodules => win_psmodules}/Teams2Markdown.psd1 (100%) rename {psmodules => win_psmodules}/Teams2Markdown.psm1 (100%) diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 7f22862..69c720d 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -33,6 +33,9 @@ if($IsWindows){ # $modPaths = Get-Childitem -Path "$src\dotfiles\psmodules" $modPaths += Get-Childitem -Path "$src\minion\psmodule" +if($IsWindows){ + $modPaths += Get-Childitem -Path "$src\dotfiles\win_psmodules" +} if($modPaths.length -eq 0){ Write-Host "No modules found." } @@ -44,11 +47,13 @@ $modPaths | ForEach-Object { # $env:PSModulePath = $env:PSModulePath + ";$src\dotfiles\psmodules" +# Windows Only Modules + # Linux-like up/down in shell Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward -Set-PSReadlineOption -HistorySavePath c:\temp\PSHistory.log +Set-PSReadlineOption -HistorySavePath $src\PSHistory.log # Minion alias commands - 'today' . $src\minion\profiles\alias.ps1 diff --git a/psmodules/Teams2Markdown.psd1 b/win_psmodules/Teams2Markdown.psd1 similarity index 100% rename from psmodules/Teams2Markdown.psd1 rename to win_psmodules/Teams2Markdown.psd1 diff --git a/psmodules/Teams2Markdown.psm1 b/win_psmodules/Teams2Markdown.psm1 similarity index 100% rename from psmodules/Teams2Markdown.psm1 rename to win_psmodules/Teams2Markdown.psm1 -- 2.47.3