agnoster-zsh-theme icon indicating copy to clipboard operation
agnoster-zsh-theme copied to clipboard

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

Open Hunter-Zack opened this issue 6 years ago • 9 comments

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

Hunter-Zack avatar Dec 01 '18 12:12 Hunter-Zack

Try this instead:

AGNOSTER_PROMPT_SEGMENTS=(
  prompt_status
  prompt_context
  prompt_virtualenv
  prompt_dir
  prompt_git
  prompt_end
)

typeset -aHg AGNOSTER_PROMPT_SEGMENTS

Hunter-Zack avatar Dec 01 '18 12:12 Hunter-Zack

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

jonlandrum avatar Oct 30 '19 20:10 jonlandrum

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

apjanke avatar Jan 02 '20 22:01 apjanke

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.

apjanke avatar Jan 03 '20 00:01 apjanke

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.

clarkperkins avatar Feb 08 '20 18:02 clarkperkins

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

apjanke avatar Feb 08 '20 18:02 apjanke

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!

clarkperkins avatar Feb 08 '20 19:02 clarkperkins

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

jjhidalgar avatar Jun 10 '20 18:06 jjhidalgar

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?

llorllale avatar Jun 23 '21 21:06 llorllale