Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import after installation. Please help me #89

Closed
BearyDevs opened this issue Nov 12, 2022 · 12 comments
Closed

Cannot import after installation. Please help me #89

BearyDevs opened this issue Nov 12, 2022 · 12 comments

Comments

@BearyDevs
Copy link

BearyDevs commented Nov 12, 2022

image
image

Thank you very much

@BearyDevs BearyDevs changed the title Cannot import Cannot import after installation. Please help me Nov 12, 2022
@devblackops
Copy link
Owner

@RedRx Please try the solution in #77.

@NeiL978
Copy link

NeiL978 commented Nov 29, 2022

try this in your profile.ps1

# Terminal-icons
Import-Module Terminal-Icons

@Arthur-Carbonari
Copy link

instead of using Import-Module Terminal-Icons try Import-Module [absolute path]/Terminal-Icons.psm1

@JuanMaChico
Copy link

Untitled

Me muestra asi y no me muestra los Iconos, y mi implementacion esta asi

oh-my-posh init pwsh --config 'C:\Users\Juan Manuel\AppData\Local\Programs\oh-my-posh\themes\clean-detailed.omp.json' | Invoke-Expression
Import-Module -Name Terminal-Icons

@Arthur-Carbonari
Copy link

Untitled

Me muestra asi y no me muestra los Iconos, y mi implementacion esta asi

oh-my-posh init pwsh --config 'C:\Users\Juan Manuel\AppData\Local\Programs\oh-my-posh\themes\clean-detailed.omp.json' | Invoke-Expression Import-Module -Name Terminal-Icons

You need to have a "nerd" font installed and set as the terminal font.

@JuanMaChico
Copy link

La letra es Hack Nerd Font Mono
image

@JuanMaChico
Copy link

image

@BearyDevs
Copy link
Author

Now It's success. I'm think it's not support on Windows 11.

I'm try to install Windows 10 and install Terminal Icons is work !.

After that I upgrade Win10 to 11 and everything is working.

Thank you

@hkrobotics
Copy link

hkrobotics commented Jan 23, 2023

Now It's success. I'm think it's not support on Windows 11.

I'm try to install Windows 10 and install Terminal Icons is work !.

After that I upgrade Win10 to 11 and everything is working.

Thank you

Is there a short fix for this issue instead of going through this process of hopping back and forth between W11 and W10?

@frivard-coveo
Copy link

I am on Windows 11 and it works quite well.
Your error is most probably due to oh-my-posh init pwsh in your profile. That's not really how modules should be used. You should install them once, from inside a regular session, then load them inside your profile file. For example, here my profile file:

Import-Module oh-my-posh
Import-Module -Name Terminal-Icons
Set-PoshPrompt -Theme "~\Documents\Powershell\myscustomtheme.omp.json"

See? No install, no init pwsh. Just Import an existing module.

@atakiya
Copy link

atakiya commented Mar 18, 2023

I am on Windows 11 and it works quite well. Your error is most probably due to oh-my-posh init pwsh in your profile. That's not really how modules should be used. You should install them once, from inside a regular session, then load them inside your profile file. For example, here my profile file:

Import-Module oh-my-posh
Import-Module -Name Terminal-Icons
Set-PoshPrompt -Theme "~\Documents\Powershell\myscustomtheme.omp.json"

See? No install, no init pwsh. Just Import an existing module.

@frivard-coveo Except that is exactly what oh-my-posh recommends:
https://ohmyposh.dev/docs/installation/prompt
Unless you are using the module, which is deprecated (among just being a wrapper for the exe for some time now)
image

(expand me)
And works fine on Windows 11 + Powershell v7 + oh-my-posh + Terminal-Icons

image

So this has to have some other cause with this certain configuration, not oh-my-posh, nor Win11.

@no5sunshine1029
Copy link

Untitled

Me muestra asi y no me muestra los Iconos, y mi implementacion esta asi

oh-my-posh init pwsh --config 'C:\Users\Juan Manuel\AppData\Local\Programs\oh-my-posh\themes\clean-detailed.omp.json' | Invoke-Expression Import-Module -Name Terminal-Icons

I have the same problem and solved it, you can try my solution#99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants