ChrisTitusTech / powershell-profile

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

How to add Terminal icons? #6

Closed AndrewLaganaro closed 1 year ago

AndrewLaganaro commented 1 year ago

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!

TheyCallMeZ commented 1 year ago

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

TheyCallMeZ commented 1 year ago

@AndrewLaganaro Did that resolve the issue for you? If not, what errors did you receive?

AndrewLaganaro commented 1 year ago

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: image

Regular powershell: image

@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: image

Regular powershell: image

TheyCallMeZ commented 1 year ago

@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.

ChrisTitusTech commented 1 year ago

Ran into this on a machine and had to right click and install system-wide on the nerd fonts.