Functions/Prompt/Disable-Prompt.ps1

<#
    .SYNOPSIS
    Disable the custom prompt.

    .DESCRIPTION
    Disable the custom prompt provided by this module. It will reset the prompt
    to the PowerShell default.

    .INPUTS
    None.

    .OUTPUTS
    None.

    .EXAMPLE
    Disable-Prompt
    Disable the custom prompt.

    .NOTES
    Author : Claudio Spizzi
    License : MIT License

    .LINK
    https://github.com/claudiospizzi/Spizzi.Profile
#>


function Disable-Prompt
{
    [CmdletBinding()]
    param
    (
    )

    function Global:Prompt
    {
        "PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1)) "
        # .Link
        # http://go.microsoft.com/fwlink/?LinkID=225750
        # .ExternalHelp System.Management.Automation.dll-help.xml
    }

    Remove-Variable -Scope Global -Name PromptColor -ErrorAction SilentlyContinue
    Remove-Variable -Scope Global -Name PromptGit -ErrorAction SilentlyContinue
}