-
Notifications
You must be signed in to change notification settings - Fork 946
All my icons work except the python icon with virtualenv #338
Comments
Well. It seems like your font does not have the python icon on that codepoint (or maybe not at all). Which strategy of awesome terminal fonts do you use? Btw. You could easily change the icon by setting |
I am using patching strategy because I was sure I was going to use only one font |
Interesting. The python icon is the "snake" emoji. Maybe you need an additional font package to display them (e.g. on ubuntu linux). In OSX it should work out of the box. |
@dritter It did work. Thanks. But I am kind of unsatisfied. I have seen emojis look prettier on my friends Mac. |
Well, if you find a prettier icon, you can overwrite the default one ;) |
Is there any way I can use nerd fonts with the current scenario? |
Yes, but it takes a little effort. You'll have to overwrite every icon by setting the right environment variables. You can get a full list of icons with The reason why we do not have a mapping for nerd font is because they change the codepoints depending on the combination of merged fonts. So we cannot give a list of icons for every combination. |
Thanks @dritter but I guess I will stick to what I have since it will require some work. |
There seems to be a bug. By default It should be The problem is in In addition, on a dark terminal, black font dark blue is hard to read, so I changed it to black on cyan. To workaroud the bug, I have this in my .zshrc, after including powerlevel9k (to be able to override the function): # POWERLEVEL9K_PYTHON_ICON='\U1F40D ' # 🐍
POWERLEVEL9K_PYTHON_ICON='\UE73C ' #
prompt_virtualenv() {
local virtualenv_path="$VIRTUAL_ENV"
if [[ -n "$virtualenv_path" && "$VIRTUAL_ENV_DISABLE_PROMPT" != true ]]; then
"$1_prompt_segment" "$0" "$2" "cyan" "black" "$(basename "$virtualenv_path")" 'PYTHON_ICON'
fi
} |
@cvmocanu |
Sorry, my bad. I had |
I am using Source Code Pro for Powerline. I am attaching a screenshot.
The text was updated successfully, but these errors were encountered: