Open Hunter-Zack opened 5 years ago
Try this instead:
AGNOSTER_PROMPT_SEGMENTS=(
prompt_status
prompt_context
prompt_virtualenv
prompt_dir
prompt_git
prompt_end
)
typeset -aHg AGNOSTER_PROMPT_SEGMENTS
Is there any progress on this ticket? I'm having the same issue.
What version(s) of zsh are y'all running?
Oh, wait: .oh-my-zsh/themes/agnoster.zsh-theme
- that's Oh My Zsh's fork of Agnoster, which has diverged significantly from this repo. You need to go ask about this over on Oh My Zsh's repo.
I'm seeing this issue as well - and I'm using the version from this repo, not the one from oh-my-zsh.
Everything works fine on my mac, running zsh 5.3. I only see the problem on a centos 7 server, running zsh 5.0.2.
Reopening, then! I'll see if I can have a look at this over the weekend.
Thanks! For what it's worth, I tried out the suggestion above (https://github.com/agnoster/agnoster-zsh-theme/issues/95#issuecomment-443422578) and it appears to work on zsh 5.0.2!
Confirmed, that change makes it work on 5.0.2 which is the latest build of zsh for centos
Try this instead:
AGNOSTER_PROMPT_SEGMENTS=( prompt_status prompt_context prompt_virtualenv prompt_dir prompt_git prompt_end ) typeset -aHg AGNOSTER_PROMPT_SEGMENTS
Where does this go?
.oh-my-zsh/themes/agnoster.zsh-theme:27: unknown file attribute: \n