agnoster / agnoster-zsh-theme

A ZSH theme designed to disclose information contextually, with a powerline aesthetic
4.02k stars 591 forks source link

.oh-my-zsh/themes/agnoster.zsh-theme:27: unknown file attribute: \n #95

Open Hunter-Zack opened 5 years ago

Hunter-Zack commented 5 years ago

.oh-my-zsh/themes/agnoster.zsh-theme:27: unknown file attribute: \n

Hunter-Zack commented 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
jonlandrum commented 5 years ago

Is there any progress on this ticket? I'm having the same issue.

apjanke commented 4 years ago

What version(s) of zsh are y'all running?

apjanke commented 4 years ago

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.

clarkperkins commented 4 years ago

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.

apjanke commented 4 years ago

Reopening, then! I'll see if I can have a look at this over the weekend.

clarkperkins commented 4 years ago

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!

jaimehrubiks commented 4 years ago

Confirmed, that change makes it work on 5.0.2 which is the latest build of zsh for centos

llorllale commented 3 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

Where does this go?