dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

zsh: bad math expression: operand expected at `%F{magenta...'

Open skwp opened this issue 13 years ago • 12 comments

After prezto upgrade..skwp theme is a little broken. Git branch doesn't display and we get that error.

skwp avatar Mar 29 '13 15:03 skwp

I now believe that this is related to missing git module

skwp avatar Mar 29 '13 15:03 skwp

Turns out my prezto didn't load at all on a fresh install due to a dirty file tree..nevermind this whole thing.

skwp avatar Mar 29 '13 16:03 skwp

I just installed Yadr on a Debian machine and I am getting this as well. zsh: bad math expression: operand expected at%F{magenta...'`

jcontonio avatar Nov 14 '13 20:11 jcontonio

I've seen this problem and I think it's related to an outdated prezto. Can you try to cd ~/.zprezto && git fetch ; git reset --hard origin/master

skwp avatar Nov 14 '13 23:11 skwp

Ran that, same result. Thanks for the help though.

On Nov 14, 2013, at 4:35 PM, Yan Pritzker [email protected] wrote:

I've seen this problem and I think it's related to an outdated prezto. Can you try to `cd ~/.zprezto && git fetch ; git reset --hard origin/master"

— Reply to this email directly or view it on GitHub.

jcontonio avatar Nov 15 '13 00:11 jcontonio

I fixed this by adding

pmodule 'git' to my ~/.zpreztorc (after all the other modules that are loaded)

TigerWolf avatar May 15 '14 00:05 TigerWolf

@TigerWolf Thanks for the tip!

arvin-foroutan avatar Aug 04 '14 14:08 arvin-foroutan

@TigerWolf it works now. thanks a lot.

hyden avatar Nov 05 '14 05:11 hyden

Hmm I'm still having the issue. And the git prezto module is present. I move it to the end of the module load list and same issue. Any ideas?

zapnap avatar Nov 20 '14 20:11 zapnap

Ran into this issue trying to install the [powerline] presto theme—needs to reflect this pull request.

benjaminmikiten avatar Jun 15 '15 22:06 benjaminmikiten

Thanks @TigerWolf. It works like charm.

djadmin avatar Feb 04 '16 19:02 djadmin

I think this might be the solution. edit your ~/.zpreztorc ':prezto:module:git:info' verbose 'yes'

RoxanaTapia avatar Aug 01 '18 10:08 RoxanaTapia