Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set back to default #933

Open
johnottone opened this issue Nov 28, 2022 · 0 comments
Open

Set back to default #933

johnottone opened this issue Nov 28, 2022 · 0 comments

Comments

@johnottone
Copy link

System Details

  • posh-git version/path: Version: v1.1.0 Path: %Documents%\PowerShell\Modules\posh-git\src
  • PowerShell version: 7.3.0
  • Git version: NA
  • Operating system name and version: Windows 10 Pro 10.0.19045

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}>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant