Closed marcuskwan closed 5 years ago
You need to add custom_javascript
to prompt list.
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(custom_javascript)
In addition, it's better to specify an icon for your custom prompt via a dedicated parameter, similarly to how you've defined its colors.
POWERLEVEL9K_CUSTOM_JAVASCRIPT_ICON=$'\ue781'
@romkatv Thank you so much!!! 😄 Feel like such a dummy haha, I'll now work on seeing if I can display it without strings
Also, thank you for your work on PL10K!
My pleasure.
By the way, remove this line from the top of your config:
source ~/powerlevel9k/powerlevel9k.zsh-theme
Otherwise zsh is wasting time loading p9k only to be overridden by p10k later on. By removing the line nothing should change but zsh should start a little bit faster.
@romkatv Done! Much appreciated 😊
Describe Your Issue
What is happening? -> I am unable to display custom glyphs using custom prompts on my terminal. I am a beginner, so I apologize in advance !
Most issues are best explained with a screenshot. Please share one if you can!
Top half of zsh file![image](https://user-images.githubusercontent.com/28922424/58930608-71c81a80-879f-11e9-9d0e-8acce311eccd.png)
Bot half of zsh file![image](https://user-images.githubusercontent.com/28922424/58930664-ae941180-879f-11e9-8c0f-50f40ba1cfcc.png)
What iTerm2 looks like![image](https://user-images.githubusercontent.com/28922424/58930692-d6837500-879f-11e9-9734-08e3348a03c8.png)
What my font book looks like![image](https://user-images.githubusercontent.com/28922424/58931556-74c50a00-87a3-11e9-92b1-18b0c1997eeb.png)
Preferences text pane in iTerm2 based on an article![image](https://user-images.githubusercontent.com/28922424/58931446-113adc80-87a3-11e9-9806-165a3af2d5c6.png)
Have you tried to debug or fix it?
Have you tinkered with your settings, and what happened when you did? Did you find a bit of code that you think might be the culprit? Let us know what you've done so far!
-> I feel like it has something to do with the way I am writing the code. I also have a suspicion about the fact that the MODE=nerdfont-complete line is different from the font folder I have installed called "Hack Font Nerd". I've googled and looked at the troubleshooting thread, filtered through issues with the keywords of glyph, icon, and custom. I have tried:
Environment Information
This information will help us understand your configuration.
zsh --version
to see this. -> zsh --version zsh 5.3 (x86_64-apple-darwin18.0)Issues with Fonts & Icons
You may delete this section if your issue is not font / icon related.
echo $POWERLEVEL9K_MODE
). -> nerdfont-complete$P9k/debug/font-issues.zsh
. -> I am getting an error of " zsh: no such file or directory: P9k/debug/font-issues.zsh " but I changed P9K to powerlevel9k and I got this:$ get_icon_names
look correct? -> Yes, all of them are displaying correctly.