typewritten: Color Mapping error
After installation through npm, I’m getting this error
/usr/lib/node_modules/typewritten/lib/colors.zsh:1: no matches found: [foreground]=default
prompt_typewritten_setup:37: division by zero
And the default prompt for zsh is used instead.
I’ve encountered this problem on two of my machines, both running Ubuntu 18.04.
$ zsh --version
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (11 by maintainers)
I don’t know Zsh syntax but changing the associative array declaration to this worked for me.
Hi @ninja18 !
Were you having the same errors? What does your setup looks like? Ubuntu as well?
Thank you for trying other options btw! Your snippet is also right zsh syntax, and could be more compatible than what I have there, right now.
Could you make a PR with these changes? Syntax can be discussed there
I’ll keep digging and I’ll lyk if I find anything!
@huy-ha I tried using your
.zshrcand got it running no problem. I’m not on Linux, though.I’ll try the manual install on a docker ubuntu image to see if anything pops up.
So I actually got it working on 2 of my machines, but not the other 3 (I just tried on another one) with the same zshrc. They are all running Ubuntu 18.04.
On the machine I created this issue on, there were permission errors when I first tried doing npm install (installed with zsh’s nvm), so I used sudo [path to npm] install -g typewritten. I’ve also tried the manual installation and oh-my-zsh installation then changing the theme in zshrc to typewritten, but they give the same error.