Skip to content

Commit f13d27b

Browse files
authored
Update hyperlink for DefaultPromptFunctionText (PowerShell#13176)
1 parent c7781d1 commit f13d27b

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/System.Management.Automation/engine/InitialSessionState.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4762,8 +4762,22 @@ internal static SessionStateAliasEntry[] BuiltInAliases
47624762

47634763
internal const string DefaultPromptFunctionText = @"
47644764
""PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "";
4765+
# .ForwardHelpTargetName about_Prompts
4766+
# .SYNOPSIS
4767+
# The PowerShell command prompt indicates
4768+
# that PowerShell is ready to run a command.
4769+
# .DESCRIPTION
4770+
# To customize the prompt, write a new Prompt function.
4771+
# The function is not protected, so you can overwrite it.
4772+
# .OUTPUTS
4773+
# The Prompt function must return an object.
4774+
# As a best practice, return a string
4775+
# or an object that is formatted as a string.
4776+
# The maximum recommended length is 80 characters.
47654777
# .Link
4766-
# https://go.microsoft.com/fwlink/?LinkID=225750
4778+
# https://go.microsoft.com/fwlink/?LinkId=2136843
4779+
# .Link
4780+
# about_Prompts
47674781
# .ExternalHelp System.Management.Automation.dll-help.xml
47684782
";
47694783

test/powershell/engine/Help/assets/HelpURI/V2Cmdlets.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Out-Null,https://go.microsoft.com/fwlink/?linkid=2096792
151151
Out-Printer,https://go.microsoft.com/fwlink/?LinkID=2109553
152152
Out-String,https://go.microsoft.com/fwlink/?linkid=2097024
153153
Pop-Location,https://go.microsoft.com/fwlink/?linkid=2096907
154-
Prompt,https://go.microsoft.com/fwlink/?LinkID=225750
154+
Prompt,https://go.microsoft.com/fwlink/?LinkId=2136843
155155
Push-Location,https://go.microsoft.com/fwlink/?linkid=2097105
156156
Read-Host,https://go.microsoft.com/fwlink/?linkid=2096610
157157
Receive-Job,https://go.microsoft.com/fwlink/?linkid=2096965

0 commit comments

Comments
 (0)