ChrisTitusTech / powershell-profile

Pretty PowerShell that looks good and functions almost as good as Linux terminal
551 stars 320 forks source link

Uninstall the profile and scripts #20

Closed sameerasw closed 1 year ago

sameerasw commented 1 year ago

I uninstalled Oh My Posh completely and re-installed but couldn't get back to default settings of oh-my-posh and change the theme according to the guides. Some help for a noob?

sahil-jindal commented 1 year ago

Hi @sameerasw, What were your default settings? Also, I would like to know some more information (if possible).

sameerasw commented 1 year ago

Hi @sameerasw, What were your default settings? Also, I would like to know some more information (if possible).

I would like to know how to completely remove this script and it's affects. Because it takes quite a time for my pc to load. I tried changing my Oh-My-Posh theme as the guides but it doesn't make any changes... I even completely re-created my powershell profile but just after I added oh-my-posh to the execution, It reverts back to the state which it was before... I couldn't find where these changes are located.

Can you give me a little help on reverting every change to it's default? Because it takes around 2 seconds to load the CLI and it's a bit annoying on day to day use.

image

sahil-jindal commented 1 year ago

Based on the setup.ps1 present in this repo, the script must be present in 1) C:\Users\<yourusername>\Documents\Powershell if you installed using Powershell 7+. 2) C:\Users\<yourusername>\Documents\WindowsPowerShell if you installed using Windows Powershell.

There, you will find the file as Microsoft.PowerShell_profile.ps1.

Can simply delete this file to revert back to the default look of Powershell.

Apart from this, here are some other things that get installed by this script.

1) Oh-my-Posh -> (Can be found using Windows Settings or Control Panel). 2) Chocolatey -> Chocolatey Uninstallation Guide

3) Terminal Icons.

sameerasw commented 1 year ago

Thank you! Removing Chocolatey fixed... Now I'm able to set up everything as normal. Now it doesn't take seconds to load profiles and instant. image