So, to set the prompt to static text that doesn't include the path, use the following command:
function prompt {"PS> "}If I'm working with PowerShell prompts connected to different Office 365 tenants, I'll put in text that identifies the tenant.
If you do need to view the current directory, you can use Get-Location or $pwd.
No comments:
Post a Comment