ChrisTitusTech / website

My HUGO Website that I use for Videos, Blogs, and Redirects
74 stars 44 forks source link

pretty-powershell/ #72

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Pretty Powershell

Having Fun with Technology

https://christitus.com/pretty-powershell/

ChrisTitusTech commented 1 year ago

@ChrisTitusTech how can i unistall your script?

Re-run it and click undo all. Note: It doesn't run in the background or as an agent so it doesn't "install" on your system.

bgoldstone commented 1 year ago

I seem to be getting this issue: screenshot

I have installed the fonts correctly and even tried manually copying them via terminal to C:\Windows\Fonts

bgoldstone commented 1 year ago

I seem to be getting this issue: screenshot

I have installed the fonts correctly and even tried manually copying them via terminal to C:\Windows\Fonts

Installing Nerd Fonts from the website fixed it!

Automaton49 commented 1 year ago

I'm sorry Chris, but this is causing people, including me, way too many problems right now and most of us don't have the time to fiddle with it. Please fix this and I'll give it a go again sometime later.

If anybody is still getting the red error and wants to get rid of the script just go to your Documents folder and find the WindowsPowerShell folder and delete that. Start up Powershell again and it should be running as it used to.

ysertbas commented 1 year ago

@bgoldstone same process but for me the icons still don't show up.

celtichawksGB commented 1 year ago

One line install error? Terminal or Powershell Could not find a part of the path 'C:\Users\xxx\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'. At line:20 char:9

MrDweep1969 commented 1 year ago

Hi Chris.

I have installed it using irm "https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1" | iex

It causing too many problems and want to uninstall it again.. How do I do that ? Could you make a short tutorial on that ?

Using Powershell 7

xen-64 commented 1 year ago

Mr. Titus could you please explain how to uninstall this to go back to default settings/appearance? Thanks.

ChrisTitusTech commented 1 year ago

Delete your profile.ps1 in Documents / PowerShell or Microsoft PowerShell

Mr. Titus could you please explain how to uninstall this to go back to default settings/appearance? Thanks.

xen-64 commented 1 year ago

Delete your profile.ps1 in Documents / PowerShell or Microsoft PowerShell

Mr. Titus could you please explain how to uninstall this to go back to default settings/appearance? Thanks.

Thank you! It worked perfectly btw

arvrianmaybe commented 1 year ago

Import-Module : The specified module 'Terminal-Icons' was not loaded because no valid module file was found in any module directory. At C:\Users\User\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:17 char:1

how the hell do i fix this

prettybadatlife commented 1 year ago

For anyone still struggling with the view/icon issues in PowerShell (v5/v7 or terminal) AFTER having run the one-line installer:

ChrisTitusTech commented 7 months ago

simply remove $PROFILE file Remove-Item $PROFILE

MVicars commented 4 months ago

When I run the command I get stuck in a never ending loop, any idea how to fix it?

Write-Error: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:24 Line | 24 | . $PROFILE | ~~ | unable to check for $profile updates Remove-Variable: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:31 Line | 31 | Remove-Variable @("newhash", "oldhash", "url") | ~~~~~~~~~~ | Cannot find a variable with the name 'newhash'. Remove-Variable: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:31 Line | 31 | Remove-Variable @("newhash", "oldhash", "url") | ~~~~~~~~~~ | Cannot find a variable with the name 'oldhash'. Remove-Variable: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:31 Line | 31 | Remove-Variable @("newhash", "oldhash", "url") | ~~~~~~~~~~ | Cannot find a variable with the name 'url'. Remove-Item: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:32 Line | 32 | Remove-Item "$env:temp/Microsoft.PowerShell_profile.ps1" | ~~~~~~~~~~~~~ | Cannot find path 'C:\Users\mvicars\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does not exist. Write-Error: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:24 Line | 24 | . $PROFILE | ~~ | unable to check for $profile updates Remove-Variable: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:31 Line | 31 | Remove-Variable @("newhash", "oldhash", "url") | ~~~~~~~~~~ | Cannot find a variable with the name 'newhash'. Remove-Variable: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:31 Line | 31 | Remove-Variable @("newhash", "oldhash", "url") | ~~~~~~~~~~ | Cannot find a variable with the name 'oldhash'. Remove-Variable: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:31 Line | 31 | Remove-Variable @("newhash", "oldhash", "url") | ~~~~~~~~~~ | Cannot find a variable with the name 'url'. Remove-Item: C:\Users\mvicars\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:32 Line | 32 | Remove-Item "$env:temp/Microsoft.PowerShell_profile.ps1" | ~~~~~~~~~~~~~ | Cannot find path 'C:\Users\mvicars\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does not exist.

randomBullets commented 4 months ago

i'm getting a whole bunch of errors :

Remove-Variable : Cannot find a variable with the name 'oldhash'. At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1

Remove-Variable : Cannot find a variable with the name 'url'. At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does not exist. At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile updates At C:\GitHub\powershell-profile\setup.ps1:35 char:1

Remove-Variable : Cannot find a variable with the name 'newhash'. At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1

and many many more like this I don't understand why please help!

baxlash commented 3 months ago

I am getting this error while loading. How can I fix it? image

fubaWoW commented 2 months ago

got an "update loop" when execute your script what cause the whole powershell to stuck! also would be nice to make a "backup" if there is already an existing profile instead of just overwrite it... i know it "seems" this should be done in your "setup.ps1" but it does not work... it just overwrite but no backup to "oldprofile.ps1"

also got an error when disable the update check that causes the update loop: image seems "zoxide" is not to be installed if it's missing!

i fixed it now by created a new profile with all the "working" stuff

synchwolf commented 2 months ago

everytime i open powershell it shows that it downloaded an update and it keeps on looping also this pops up after saying that i should restart my shell zoxide : The term 'zoxide' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\NightStalker\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:248 char:25

Invoke-Expression : Cannot bind argument to parameter 'Command' because it is null. At C:\Users\NightStalker\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:248 char:19

ChrisTitusTech commented 2 months ago

I'm in the middle of a massive refactor right now, but once I'm finished should be the best powershell profile in the world. Adding error checks and improving the installation script.

TwistedVision518 commented 1 week ago

It would be great if there was also a demo to change the theme of the prompt onto something else maybe i know how to do it but i had to experiment a lot. Also amazing work.

TwistedVision518 commented 1 week ago

Also it would be great to have the comment box on top of the comment section as its not efficient to have to scroll all the way down to the bottom.