From 2c91a0315a6863ff05965ac9a5c7b54a3bc84921 Mon Sep 17 00:00:00 2001 From: Trevor SANDY Date: Tue, 27 Jan 2026 10:55:34 +0100 Subject: [PATCH] Add conditional display for Show-Help message --- Microsoft.PowerShell_profile.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index da4512b..8700bad 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -22,6 +22,7 @@ $debug = $false ############ $EDITOR_Override ############ ############ $debug_Override ############ ############ $repo_root_Override [To point to a fork, for example] ############ +############ $show_help_Override [display Show-Help on PowerShell launch] ############ ############ $timeFilePath_Override ############ ############ $updateInterval_Override ############ ############ ############ @@ -758,4 +759,6 @@ if (Test-Path "$PSScriptRoot\CTTcustom.ps1") { Invoke-Expression -Command "& `"$PSScriptRoot\CTTcustom.ps1`"" } -Write-Host "$($PSStyle.Foreground.Yellow)Use 'Show-Help' to display help$($PSStyle.Reset)" +if (-not $show_help_Override) { + Write-Host "$($PSStyle.Foreground.Yellow)Use 'Show-Help' to display help$($PSStyle.Reset)" +}