GithubHelp home page GithubHelp logo

Broken History about bash-it HOT 12 CLOSED

bash-it avatar bash-it commented on May 21, 2024
Broken History

from bash-it.

Comments (12)

 avatar commented on May 21, 2024

Bash history works just fine for me. Do you have any custom stuff that could be messing with it?

from bash-it.

phoet avatar phoet commented on May 21, 2024

nope.

as an example, the prompt looks like this as in a git repo:

± |master ✓| →

using the bash-history overwrites the branch information at some point, which looks like this:

cd .vim/ → git pull

so the cd-command is the actual command from bash history, but it won't get shown at the right position.

from bash-it.

 avatar commented on May 21, 2024

Which theme is that? It probably isn't an issue with bash history, more with with theme.

from bash-it.

phoet avatar phoet commented on May 21, 2024

it's the default one from bash_it/template/bash_profile.template.bash

export BASH_THEME='bobby'

from bash-it.

 avatar commented on May 21, 2024

Hmm... I seem to be having the same problem. I'll try to see what I can do.

from bash-it.

phoet avatar phoet commented on May 21, 2024

if there is some other theme that won't brake the history i'll be fine with that.

from bash-it.

 avatar commented on May 21, 2024

Any of the others should work. The one that is closest to "bobby" that I've used would probably be "modern".

from bash-it.

phoet avatar phoet commented on May 21, 2024

thx, i'll have a look into the other themes, as modern doesn't provide an rvm info

from bash-it.

wwalser avatar wwalser commented on May 21, 2024

Just started using this today and I am having the same issue. If someone knows what specifically is causing the problem I can poke around for a fix.

from bash-it.

demula avatar demula commented on May 21, 2024

I had the same problem when working on a theme. I solved it by enclosing non-printing characters with [ and ] in the theme file. Try it and see if it helps.

from bash-it.

wwalser avatar wwalser commented on May 21, 2024

It's been to long to remember exactly, but I think I attempted enclosing non-printing characters as well. I believe that I was not successful in getting this method to work, but I am not confident in my understanding of exactly how the escapes should be positioned.

from bash-it.

sos4nt avatar sos4nt commented on May 21, 2024

All color variables have to be enclosed in \[\] when used in a prompt. This marks the sequence as non-printable so bash skips it when calculating the prompt's length.
${green}\[${green}\]
${normal}\[${normal}\]

from bash-it.

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.