Giter Site home page Giter Site logo

Comments (13)

TheyCallMeZ avatar TheyCallMeZ commented on July 24, 2024 1

@Sorenwise
You can install as many of the fonts as you like, you just need to set that as your terminal font.
I believe the font names typically have NF in the name.

In the Terminal app, click on the down arrow and select "Settings"
image

Click on the Windows Powershell option under Profiles, scroll down and click on Appearance
image

Then Select your font from the font face dropdown
image

Save and you should be good.

With a direct powershell window
right click on the title bar, click on "Defaults", Select the Font Tab
Select one of the Nerd Fonts you installed from the list and click Ok.

from powershell-profile.

Sorenwise avatar Sorenwise commented on July 24, 2024

ok I fixed it by doing a manual install

but now I am getting this error

"oh-my-posh : The term 'oh-my-posh' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At E:\Users\user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:210 char:1

  • oh-my-posh --init --shell pwsh --config ~/jandedobbeleer.omp.json | I ...
  •   + CategoryInfo          : ObjectNotFound: (oh-my-posh:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException"
    
    

What is jandedobbeleer?

from powershell-profile.

TheyCallMeZ avatar TheyCallMeZ commented on July 24, 2024

@Sorenwise you need to run the command to install Oh-my-posh which was created by jandedobbeleer.
You will need to run the following from Chris's setup script or install from the ohmyposh website

# OMP Install
#
winget install -e --accept-source-agreements --accept-package-agreements JanDeDobbeleer.OhMyPosh

# Font Install
Invoke-RestMethod https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip?WT.mc_id=-blog-scottha -o cove.zip

from powershell-profile.

Sorenwise avatar Sorenwise commented on July 24, 2024

@Sorenwise you need to run the command to install Oh-my-posh which was created by jandedobbeleer. You will need to run the following from Chris's setup script or install from the ohmyposh website

# OMP Install
#
winget install -e --accept-source-agreements --accept-package-agreements JanDeDobbeleer.OhMyPosh

# Font Install
Invoke-RestMethod https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip?WT.mc_id=-blog-scottha -o cove.zip

@TheyCallMeZ Ok I did what you said and I got this:

https://gyazo.com/3f84c1a93f70bff19d97f97ccc80dea0

from powershell-profile.

TheyCallMeZ avatar TheyCallMeZ commented on July 24, 2024

@Sorenwise looks like you need to install a font, either use the installer that's built into oh my posh to pick and install fonts, https://ohmyposh.dev/docs/installation/fonts

after that you will need to go to the properties for your powershell window and set the font that you installed there to see the icons.

from powershell-profile.

Sorenwise avatar Sorenwise commented on July 24, 2024

@TheyCallMeZ Yes I saw that in the directions at the end of the install file and I did go and manually install nerd fonts and I selected Cascadia which is the one CTT picked I think. But the icons are still messed up :(.

from powershell-profile.

TheyCallMeZ avatar TheyCallMeZ commented on July 24, 2024

@Sorenwise are you opening in windows terminal or direct powershell window?

For the former you need to select the nerd font in settings for powershell in terminal.

For the latter you need to go to the properties for that window, pick your font and save the settings as default.

from powershell-profile.

Sorenwise avatar Sorenwise commented on July 24, 2024

@TheyCallMeZ I am just opening direct powershell just to check I tried the windows terminal but that doesn't have anything changed on it, also as admin.

Does it matter that I installed all the Cascadia fonts so like I have 10 different options? cause I dled the pack from nerd fonts directly.

from powershell-profile.

Sorenwise avatar Sorenwise commented on July 24, 2024

@TheyCallMeZ Well I went into the defaults as you said and nothing I put Cascadia code and it didn't help.
Still have the same messed up window. I even updated powershell to 7.2.7 cause I was on 7.2.6.
I have noticed that some programs dont want to work cause I am in windows 1903, could that be the problem?

from powershell-profile.

TheyCallMeZ avatar TheyCallMeZ commented on July 24, 2024

@Sorenwise I installed the "Cascadia Code" font, and can confirm it does not have the symbols, I believe "CaskaydiaCove NF Mono" is installed along with it and can confirm it does show the symbols. I'm Partial to Hack as far as font choice.

Looking at the NerdFonts website (https://www.nerdfonts.com/ || https://www.nerdfonts.com/font-downloads) it seems "Cascadia Code" has the nerdfont name as mentioned above Caskaydia Cove Nerd Font
image

from powershell-profile.

Sorenwise avatar Sorenwise commented on July 24, 2024

@TheyCallMeZ Well it finally worked with the Hack font but I tried the mono font and it didn't work for me. Which is weird cause I'm pretty sure I saw CTT put the Cascadia code one in the vid. Well anyway thanks for all the help resolving this and I do like how the hack font looks.

I wonder if a reinstall of the fonts would work but its working now I don't want to break it.

from powershell-profile.

TheyCallMeZ avatar TheyCallMeZ commented on July 24, 2024

@Sorenwise Nerdfonts can be weird at times. You can try downloading from the nerdfonts website and see if that version works but outside of that I'm out of ideas. Glad you like the Hack font!

from powershell-profile.

Sorenwise avatar Sorenwise commented on July 24, 2024

@TheyCallMeZ I did DL from their website, I suppose maybe Id get a different result if I had run this command you told me too:

Font Install

Invoke-RestMethod https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip?WT.mc_id=-blog-scottha -o cove.zip

only thing with that is that I had already gone with the website and dled from them. I didn't know how to uninstall their fonts and use the ones from this command.

Just wanted to let you know.

from powershell-profile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.