powershell-profile
powershell-profile copied to clipboard
How to add Terminal icons?
Hi Titus, I've tried to add Terminal icons to your script on my fork.
On setup.ps1, I added the line at the end
Install-Module -Name Terminal-Icons -Repository PSGallery
On Microsoft.PowerShell_profile.ps1, I added
Import-Module -Name Terminal-Icons
at the beggining, line 16.
I just want to ask if this is all I have to do to get those icons, I'm not used to code for powershell so I thought I'd be better to ask if it's just this that needs to be done in order for it to work.
Thanks!
open your powershell window, and type notepad $PROFILE paste your Import-Module line in here, save it and reload your powershell window / use chris's reload-profile command
@AndrewLaganaro Did that resolve the issue for you? If not, what errors did you receive?
Really sorry for the delay. The Import-Module line worked for windows terminal, while on regular powershell window (outside Windows terminal) icons keep not showing at all.
Terminal:

Regular powershell:

@ChrisTitusTech You maybe wanna see this: In regular powershell those new nerd fonts installed do not appear on the fonts list, whilst in Windows Terminal they show normally. This should be the causing issue on regular powershell not showing icons I think. I don't know how to add Caskaydia Cove Nerd Fonts to regular powershell's list by now.
Terminal:

Regular powershell:

@AndrewLaganaro windows can be wonky with fonts from time to time. My two suggestions would be to reboot and see if the fonts are available or try installing them directly from nerdfonts.
Ran into this on a machine and had to right click and install system-wide on the nerd fonts.