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

icons not being displayed #646

Closed
gorgale opened this issue Mar 24, 2019 · 2 comments
Closed

icons not being displayed #646

gorgale opened this issue Mar 24, 2019 · 2 comments
Labels
question Issue is a question, feedback, report or thanksgiving. wontfix Will not be fixed. Current behavior is not going to be changed.

Comments

@gorgale
Copy link

gorgale commented Mar 24, 2019

Current behavior

Icons are not showing properly (as seen in #220 and #106)

Expected behavior

my prompt to appear as in the repo's screenshots

X resources font configuration (.Xdefaults)

URxvt.font: xft:Source\ Code\ Pro\ for\ Powerline:pixelsize=12,xft:PowerlineSymbols,xft:Unifont:pixelsize=12,xft:noto-fonts-emoji:pixelsize=12,xft:Material-Design-Icons:pixelsize=12

Relevant Zsh configuration (.zshrc)

# # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes


# Set Spaceship ZSH as a prompt
autoload -U promptinit; promptinit
#prompt spaceship
ZSH_THEME="robbyrussell"




# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )


source $ZSH/oh-my-zsh.sh

Environment

Spaceship version:
➜ ~ echo $SPACESHIP_VERSION

➜ ~

Zsh version: 5.7.1
Zsh framework: OMZ
Zsh plugin manager: None
Terminal emulator: urxvt
Operating system: Arch Linux

Screenshot

Provide a screenshot that shows your issue.

image

@gorgale gorgale changed the title icons icons not being displayed Mar 24, 2019
@gorgale
Copy link
Author

gorgale commented Mar 25, 2019

Update: I have gotten the icons to display correctly, by removing ALL font definitions from .Xdefaults, however they are showing up extremely small, and it appears to be defaulting to a font that I do not wish to use.

image

(the different from right --> left is that the following line is commented OUT on the left, and is not commented on the right)

URxvt.font: xft:Source\ Code\ Pro\ for\ Powerline:pixelsize=12,xft:Material\ Icons:pixelsize=12

@salmanulfarzy
Copy link
Member

This is most likely an issue with your terminal emulator font/unicode configuration and not directly related to spaceship-prompt. Closing this now, Feel free to reopen if face issues with prompt.

@salmanulfarzy salmanulfarzy added question Issue is a question, feedback, report or thanksgiving. wontfix Will not be fixed. Current behavior is not going to be changed. labels Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue is a question, feedback, report or thanksgiving. wontfix Will not be fixed. Current behavior is not going to be changed.
Development

No branches or pull requests

2 participants