zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.55k stars 1.32k forks source link

builtin/typeset/bad substitution when trying to source #875

Closed K3ttle closed 2 years ago

K3ttle commented 2 years ago

Hi,

I'm not sure if this is the right place to post this so apologies in advance if not. Super new to Linux and zsh.

I'm running Pop OS v22.04 and trying to source zsh-syntax-highlighting.zsh but it's throwing a few errors that I'm not sure about.

/home/user/.config/zsh/syntax-highlighting/zsh-syntax-highlighting.zsh: 31: builtin: not found /home/user/.config/zsh/syntax-highlighting/zsh-syntax-highlighting.zsh: 31: typeset: not found /home/user/.config/zsh/syntax-highlighting/zsh-syntax-highlighting.zsh: 36: builtin: not found /home/user/.config/zsh/syntax-highlighting/zsh-syntax-highlighting.zsh: 39: Bad substitution

I just ran through the powerlevel10k setup but not sure if that will make any difference.

Any advice greatly appreciated.

K3ttle commented 2 years ago

It was powerlevel10k causing it. Recreated vanilla zshrc file and works as expected.