Giter Site home page Giter Site logo

Parse error about bullet-train.zsh HOT 12 CLOSED

caiogondim avatar caiogondim commented on July 20, 2024
Parse error

from bullet-train.zsh.

Comments (12)

jpawlik avatar jpawlik commented on July 20, 2024

I'm experiencing the same parse error with oh-my-zsh.

from bullet-train.zsh.

caiogondim avatar caiogondim commented on July 20, 2024

Thanks for reporting.
What OS you using?

from bullet-train.zsh.

jaredweiss avatar jaredweiss commented on July 20, 2024

This issue was on Linux (Ubuntu 12.04). I can't seem to reproduce the error on a mac.

from bullet-train.zsh.

unixorn avatar unixorn commented on July 20, 2024

What versions of zsh are installed on the Mac and Ubuntu machines?

from bullet-train.zsh.

unixorn avatar unixorn commented on July 20, 2024

@jaredweiss, if you change line 299 to

if [[ "$BULLETTRAIN_GIT_COLORIZE_DIRTY" == true && $(git status --porcelain --ignore-submodules) ]]; then

does that resolve the issue on your ubuntu box without breaking the Mac?

from bullet-train.zsh.

jaredweiss avatar jaredweiss commented on July 20, 2024

@unixorn
Mac: zsh 5.0.8 (x86_64-apple-darwin14.4.0)
Linux: zsh 4.3.17 (x86_64-unknown-linux-gnu)

That line doesn't seem to solve the issue on the linux machine.

from bullet-train.zsh.

NaiveCAI avatar NaiveCAI commented on July 20, 2024

@jaredweiss
Hi, i met the same problem today.
May be U can try it this way:

if [["$BULLETTRAIN_GIT_COLORIZE_DIRTY" == true && $(git status --porcelain --ignore-submodules)]]; then

It seems that it's a syntax problem.

from bullet-train.zsh.

KVoll avatar KVoll commented on July 20, 2024

@jaredweiss
Hi, I also had the same problem. The error was happening on both Mac and Linux using the same zsh versions as you. The solution posted by @unixorn didn't solve the issue on either machine.
I was able to fix it by changing line 299 to

if [[ $BULLETTRAIN_GIT_COLORIZE_DIRTY == true && -n $(git status --porcelain --ignore-submodules) ]]; then

Maybe it'll work for you too. Good luck!

from bullet-train.zsh.

unixorn avatar unixorn commented on July 20, 2024

@KVoll what version of zsh are you using?

from bullet-train.zsh.

KVoll avatar KVoll commented on July 20, 2024

@unixorn
Mac: zsh 5.0.8 (x86_64-apple-darwin14.4.0)
Linux: zsh 4.3.17 (x86_64-unknown-linux-gnu)

from bullet-train.zsh.

unixorn avatar unixorn commented on July 20, 2024

@KVoll are you going to do a PR with your change? I don't mind making one but you should get the credit for the fix.

from bullet-train.zsh.

jaredweiss avatar jaredweiss commented on July 20, 2024

@KVoll Thanks! your fix worked for me

from bullet-train.zsh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.