MicrosoftDocs / terminal

Creative Commons Attribution 4.0 International
470 stars 177 forks source link

Terminal Icons have to be imported every time, I open a window #616

Closed GFNiko closed 1 year ago

GFNiko commented 1 year ago

How do i use Terminal Icons with Windows Terminal automatically and everytime I open a new window (powershell for example)? Right now, TI won't work until I write Import-Module -Name Terminal-Icons

nguyen-dows commented 1 year ago

Hi @GFNiko You can add that line to your Terminal profile so that you won't have to manually import it every time you open a new window.

Here is an example of how to do so for PowerShell: 1) code $profile This opens your Terminal profile in VSCode.

2) Add Import-Module -Name Terminal-Icons in a new line in your Terminal profile. This will run that line automatically every time you launch PowerShell.

To test if this worked correctly for PowerShell, you can do the following: 1) Open a new PowerShell tab in Terminal. 2) Enter ls to list all the files in your working directory. If all goes well, you should see icons.

Please let me know if this worked for you :)

GFNiko commented 1 year ago

Thanks, that helped