powershell-profile icon indicating copy to clipboard operation
powershell-profile copied to clipboard

How to add Terminal icons?

Open AndrewLaganaro opened this issue 3 years ago • 4 comments

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!

AndrewLaganaro avatar Oct 31 '22 17:10 AndrewLaganaro

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 avatar Nov 01 '22 03:11 TheyCallMeZ

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

TheyCallMeZ avatar Nov 02 '22 01:11 TheyCallMeZ

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

AndrewLaganaro avatar Nov 18 '22 16:11 AndrewLaganaro

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

TheyCallMeZ avatar Nov 18 '22 18:11 TheyCallMeZ

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

ChrisTitusTech avatar Nov 30 '22 21:11 ChrisTitusTech