Zsh theme not working properly on OSX -



Zsh theme not working properly on OSX -

just got started zsh yesterday i'm having lot of problem getting themes work. here showing on zsh prompt:

$fg[cyan][$fg[white] keithy $fg[cyan]] [$fg[white]~/desktop$fg[cyan]] >$reset_color

my ~/.zshrc

source ~/.antigen.zsh antigen theme jdavis/zsh-files themes/jdavis

thanks

tl;dr: corrected .zshrc provided @ bottom. might want seek first, see working, come read explanations.

inspecting antigen.zsh , jdavis.zsh-theme, looks have 2 problems:

you haven't loaded , executed colors function anywhere. add

autoload -u colors && colors

to .zshrc.

prompt single-quoted , not parsed. need utilize prompt_subst option alternative parse prompt string. add

setopt promptsubst

to .zshrc. alternative does, according linked documentation:

if set, parameter expansion, command substitution , arithmetic expansion performed in prompts. substitutions within prompts not impact command status.

so .zshrc should like

source ~/.antigen.zsh autoload -u colors && colors setopt promptsubst antigen theme jdavis/zsh-files themes/jdavis

osx zsh

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -