reujab / silver

A cross-shell customizable powerline-like prompt with icons
MIT License
453 stars 30 forks source link

unable to set separator #2

Closed benbooth493 closed 5 years ago

benbooth493 commented 5 years ago

I have this ~/.zshrc configuration but no value for SILVER_SEPARATOR appears to do anything:

SILVER=(os:white:blue dir:blue:black git:red:black)
SILVER_SEPARATOR="\ue0b8"

export SILVER_SHELL="zsh"
eval "$(silver init)"

Any ideas?

reujab commented 5 years ago

The SILVER_SEPARATOR variable is not being exported, so silver is unable to access the variable. To achieve the expected result, replace that line with export SILVER_SEPARATOR=$'\ue0b8'. Thank you for reporting this; I will clarify this in the documentation.