GithubHelp home page GithubHelp logo

Comments (6)

djl avatar djl commented on August 29, 2024

I've been running with %s in my prompt format since the formatting arguments were added and have never come across this.

A few quick tests with the stock Snow Leopard Python don't seem to show this bug.

Could you post your full prompt and which shell you're using?

from vcprompt.

bjeanes avatar bjeanes commented on August 29, 2024

I am using ZSH and I get that output when running the command directly in the shell as well as in my prompt (so it is not specifically prompt related).

I do NOT get this in Bash, however...

from vcprompt.

djl avatar djl commented on August 29, 2024

I'm willing to bet that this is a conflict with a ZSH option.

Do you have your zshrc (or other config files) available anywhere? I'll try them out and see if I can recreate the bug.

from vcprompt.

bjeanes avatar bjeanes commented on August 29, 2024

Well I only switched to ZSH yesterday so I don't really have any options other than the ones in http://github.com/robbyrussell/oh-my-zsh. If you just install that and run a zsh shell you should have the same setup as me.

In any case you are right about it being some option:

$ misc/vcprompt.py -f '%s'
git
$ source zsh/zshrc
$ misc/vcprompt.py -f '%s'
[m'git

What is strange is that running vcprompt without specifying a format, it outputs the SCM system without the strange output -- even with ZSH and all the configuration files loaded.

from vcprompt.

djl avatar djl commented on August 29, 2024

Found the problem :)

It lies in oh-my-zsh's lib/termsupport.zsh. Removing this line fixes the problem.

This isn't unique to vcprompt. It seems oh-my-zsh clobbers all %s strings:

$ echo '%s'
[m'%s

from vcprompt.

bjeanes avatar bjeanes commented on August 29, 2024

very odd...

I'll log a bug with oh-my-zsh then!

from vcprompt.

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.