< Back

Set-Prompt

Sun Jan 19, 2020 5:36 pm

NAME Set-Prompt



SYNOPSIS

Sets the current prompt.





SYNTAX

Set-Prompt [-Name] <String> [<CommonParameters>]





DESCRIPTION

Sets the current prompt to one of the builtin prompts, or a custom function.





PARAMETERS

-Name <String>

Name of a built-in prompt function.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-Prompt UNAtCNBrackets



[jimmeh@jimmehsbox] C:\\$









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-Prompt { Write-Host "Hello >" -NoNewLine }



Hello >











RELATED LINKS

https://github.com/jimmehc/PromptEd