Spaceship-prompt: Can not show icons normally

Created on 15 May 2017  路  10Comments  路  Source: denysdovhan/spaceship-prompt

In my urxvt terminal, it become this:
2017-05-15-160257_104x64_scrot
And node js symbol is the same condition.

question

Most helpful comment

I think your system lacks some Unicode characters, you may need to install the ttf-ancient-fonts package
@JayceCao

All 10 comments

And docker icon, ruby icon...

@JayceCao Please provide the additional informations required in the issue template. It helps us better understand the problem. Also a better screen shot including how language prompt sections are displayed.

When I open the theme file, it looks like this:

2017-05-15-173522_1104x189_scrot
2017-05-15-173540_1023x253_scrot
2017-05-15-173625_945x1094_scrot
When I enter the folder which has installed node js, it looks like this:
2017-05-15-174122_676x36_scrot

OS: Arch Linux x86_64 Linux 4.10.13
Shell: zsh 5.3.1
WM: i3
Terminal: rxvt-unicode v9.22 - released: 2016-01-23

My zsh configuration:
1 # If you come from bash you might have to change your $PATH.
2 # export PATH=$HOME/bin:/usr/local/bin:$PATH
3
4 # Path to your oh-my-zsh installation.
5 export ZSH=/home/jaycecao/.oh-my-zsh
6
7 # Set name of the theme to load. Optionally, if you set this to "random"
8 # it'll load a random theme each time that oh-my-zsh is loaded.
9 # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
10 ZSH_THEME="spaceship"
11
12 # Uncomment the following line to use case-sensitive completion.
13 # CASE_SENSITIVE="true"
14
15 # Uncomment the following line to use hyphen-insensitive completion. Case
16 # sensitive completion must be off. _ and - will be interchangeable.
17 # HYPHEN_INSENSITIVE="true"
18
19 # Uncomment the following line to disable bi-weekly auto-update checks.
20 # DISABLE_AUTO_UPDATE="true"
21
22 # Uncomment the following line to change how often to auto-update (in days).
23 # export UPDATE_ZSH_DAYS=13
24
25 # Uncomment the following line to disable colors in ls.
26 # DISABLE_LS_COLORS="true"
27
28 # Uncomment the following line to disable auto-setting terminal title.
29 # DISABLE_AUTO_TITLE="true"
30
31 # Uncomment the following line to enable command auto-correction.
32 # ENABLE_CORRECTION="true"
33
34 # Uncomment the following line to display red dots whilst waiting for completion.
35 # COMPLETION_WAITING_DOTS="true"
36
37 # Uncomment the following line if you want to disable marking untracked files
38 # under VCS as dirty. This makes repository status check for large repositories
39 # much, much faster.
40 # DISABLE_UNTRACKED_FILES_DIRTY="true"
41
42 # Uncomment the following line if you want to change the command execution time
43 # stamp shown in the history command output.
44 # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
45 # HIST_STAMPS="mm/dd/yyyy"
46
47 # Would you like to use another custom folder than $ZSH/custom?
48 # ZSH_CUSTOM=/path/to/new-custom-folder
49
50 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
51 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
52 # Example format: plugins=(rails git textmate ruby lighthouse)
53 # Add wisely, as too many plugins slow down shell startup.
54 plugins=(git k zsh-autosuggestions zsh-syntax-highlighting)
55
56 source $ZSH/oh-my-zsh.sh
57
58 # User configuration
59
60 # export MANPATH="/usr/local/man:$MANPATH"
61
62 # You may need to manually set your language environment
63 # export LANG=en_US.UTF-8
64
65 # Preferred editor for local and remote sessions
66 # if [[ -n $SSH_CONNECTION ]]; then
67 # export EDITOR='vim'
68 # else
69 # export EDITOR='mvim'
70 # fi
71
72 # Compilation flags
73 # export ARCHFLAGS="-arch x86_64"
74
75 # ssh
76 # export SSH_KEY_PATH="~/.ssh/rsa_id"
77
78 # Set personal aliases, overriding those provided by oh-my-zsh libs,
79 # plugins, and themes. Aliases can be placed here, though oh-my-zsh
80 # users are encouraged to define aliases within the ZSH_CUSTOM folder.
81 # For a full list of active aliases, run alias.
82 #
83 # Example aliases
84 # alias zshconfig="mate ~/.zshrc"
85 # alias ohmyzsh="mate ~/.oh-my-zsh"
86 screenfetch
87
88 #export TMUX_POWERLINE_SEG_WEATHER_LOCATION="2151334"
89 export BRIGHTNESS=/sys/class/backlight/intel_backlight/brightness
90 export MAX_BRIGHT=/sys/class/backlight/intel_backlight/max_brightness
91 export NVM_DIR="$HOME/.nvm"
92 export EDITOR="vim"
93 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
94 #alias tmux="tmux -2"
95 source /etc/autojump.zsh
96
97 #[ -z "$DISPLAY" -a "$(fgconsole)" -eq 1 ] && exec startx
98
99 COLORFGBG="default:default"
100 [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

AFAIK from [urxvt ref] and some other It's because of poor rendering of different width characters by urxvt

Try launching urxvt using urxvt -fn "xft:<some compatible font>". I'm attaching two screen shots that shows both working and non-working urxvt.

image

image

I'm using Terminess (TTF) Nerd Font Complete Mono.ttf.
https://github.com/JayceCao/config_files/raw/master/Terminess%20(TTF)%20Nerd%20Font%20Complete%20Mono.ttf.

This is related to the terminal emulator and font configuration. This has nothing to do with the spaceship theme. I would suggest testing with other powerline patched fonts.

I'm closing this issue as resolved. @JayceCao if you still have questions, feel free to reopen.

I think your system lacks some Unicode characters, you may need to install the ttf-ancient-fonts package
@JayceCao

Thanks @fppaess, that worked for me.

I think your system lacks some Unicode characters, you may need to install the ttf-ancient-fonts package
@JayceCao

2019 reporting in. This fixed my issue on a fresh install.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwhipp picture jwhipp  路  3Comments

gillesdemey picture gillesdemey  路  3Comments

salmanulfarzy picture salmanulfarzy  路  3Comments

martincartledge picture martincartledge  路  4Comments

conradwt picture conradwt  路  3Comments