dahlbyk / posh-git

A PowerShell environment for Git
http://dahlbyk.github.io/posh-git/
MIT License
7.62k stars 802 forks source link

Set back to default #933

Open johnottone opened 1 year ago

johnottone commented 1 year ago

System Details

Issue Description

I wanted to display powershell prompt like a bash shell and it worked. here is the script I used in my profile. Now, I want to set everything back to default. Can you help me get everything back to the way it was before I ran this script. I can't get anything to work, and I think I have messed it up because now the prompt says PS>.


Import-Module 'C:\PATH\TO\SRC\posh-git.psd1'
function prompt {
    # Shorten the path
    $path = $ExecutionContext.SessionState.Path.CurrentLocation.Path
    $path = $path.Replace($HOME, "~") 
​
    Write-Host "$path" -ForegroundColor Green -NoNewline
    Write-VcsStatus
    Write-Host ""

    "$('$' * ($nestedPromptLevel + 1)) "
}

I just want it back to PS C:\Users\{username}>