Open utterances-bot opened 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.
I seem to be getting this issue:
I have installed the fonts correctly and even tried manually copying them via terminal to C:\Windows\Fonts
I seem to be getting this issue:
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!
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.
@bgoldstone same process but for me the icons still don't show up.
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
+ CategoryInfo : OperationStopped: (Could not find ...l_profile.ps1'.:String) [], RuntimeException
+ FullyQualifiedErrorId : Could not find a part of the path 'C:\Users\xxx\OneDrive\Documents\WindowsPowerShell\M
icrosoft.PowerShell_profile.ps1'.
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
Mr. Titus could you please explain how to uninstall this to go back to default settings/appearance? Thanks.
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.
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
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
+ CategoryInfo : ResourceUnavailable: (Terminal-Icons:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
how the hell do i fix this
For anyone still struggling with the view/icon issues in PowerShell (v5/v7 or terminal) AFTER having run the one-line installer:
Open File Explorer and navigate to C:\Windows\Fonts
Look under the text "Preview, delete, or show and hide the fonts installed on your computer", there should be multiple items that indicate fonts that are presently installed on your computer. (This step is just identifying that you're in the right place)
For reach font you find where the name starts with "Caskaydia", right click the item, then click Delete.
Rinse and repeat until you find no "Caskaydia" fonts left in this list.
Re-center yourself with a little meditation, then circle back to this important line in the article:
After running the above script, you will unzip the cove.zip file from the directory the command above was run from and install those nerd fonts. If you want to download other nerd fonts, go to: https://www.nerdfonts.com/
Open PowerShell, right click the title bar and click Properties.
Choose the Font tab, then select the "CaskaydiaCove Nerd Font"
One way to know if it's working or not is to select a different font, such as Consolas, pay attention to the Preview shown in the Properties window, then select CaskaydiaCover Nerd Font again. If you don't see a change in that preview, start from the beginning step in my response one more time. If it still doesn't work after all of this, I will buy you a pizza in the metaverse.
simply remove $PROFILE file
Remove-Item $PROFILE
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.
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
+ CategoryInfo : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
+ FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand
Remove-Variable : Cannot find a variable with the name 'url'. At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ CategoryInfo : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
+ FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand
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
+ CategoryInfo : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
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
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1
Remove-Variable : Cannot find a variable with the name 'newhash'. At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ CategoryInfo : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
+ FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand
and many many more like this I don't understand why please help!
I am getting this error while loading. How can I fix it?
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:
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
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
+ CategoryInfo : ObjectNotFound: (zoxide:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
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
+ CategoryInfo : InvalidData: (:) [Invoke-Expression], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.InvokeExpre
ssionCommand
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.
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.
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.
Pretty Powershell
Having Fun with Technology
https://christitus.com/pretty-powershell/