Giter Site home page Giter Site logo

Problem with local Status car about gbt HOT 4 CLOSED

jtyr avatar jtyr commented on September 17, 2024
Problem with local Status car

from gbt.

Comments (4)

jtyr avatar jtyr commented on September 17, 2024 1

I can see where the problem is! You don't have $? in your PS1. Try this:

PS1='$(~/go/bin/gbt $?)'

from gbt.

SweBarre avatar SweBarre commented on September 17, 2024 1

You rock!

Thanks for the support and patience, I knew it was some configuration error from my part :)

from gbt.

jtyr avatar jtyr commented on September 17, 2024

I don't see any problem with your configuration. If I strip it down to this:

export VIRTUAL_ENV_DISABLE_PROMPT=1
export GBT_CARS='OS, Git, Dir, PyVirtEnv, Status, Sign'
export GBT_CAR_PYVIRTENV_FORMAT='{{ Icon }}'
export GBT_CAR_DIR_BG='dark_gray'
export GBT_CAR_DIR_DEPTH='3'
export GBT_CAR_STATUS_FORMAT=' {{ Code }} '
export GBT_CAR_SIGN_USER_TEXT=''

The status code is displayed normally. Please could it without any of your configuration? If that works, start adding your custom configuration bit by bit and see where it breaks.

from gbt.

SweBarre avatar SweBarre commented on September 17, 2024

Thanks,
I tried it, same issue though.

Screenshot from 2019-11-04 12-47-58

I also removed the gbt binary and source tree, and ran:

$ go get github.com/jtyr/gbt/cmd/gbt
$ go install github.com/jtyr/gbt/cmd/gbt

same result.

from gbt.

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.