GithubHelp home page GithubHelp logo

Prompt command display error about bash-it HOT 11 CLOSED

bash-it avatar bash-it commented on May 22, 2024
Prompt command display error

from bash-it.

Comments (11)

meirish avatar meirish commented on May 22, 2024

I've got the same issue on Lion w/ Terminal.app.

from bash-it.

farneman avatar farneman commented on May 22, 2024

I've fooled around in the scripts and narrowed down that the issue seems to be with the preexec.bash script. If I remove the calls to the precmd and preexec functions then the "\e]0;some command" bit goes away. Both those functions seem to only return true. I'm not very familiar with shell scripting and the bash prompt to know what that's doing.

The top of preexec.bash mentions that it was tested to work on OS X 10.4. Since it runs fine on my 10.5 machine, my guess is that something was updated in 10.6 causing the script to no longer work properly in post 10.5 versions of OS X.

from bash-it.

farneman avatar farneman commented on May 22, 2024

After posting my previous comment I've further narrowed the issue down to the set_xterm_title function in the xterm.plugins.bash script. Disabling the xterm plugin fixed the issue for me. Cnn you check if you have the xterm plugin enabled @meirish ?

from bash-it.

meirish avatar meirish commented on May 22, 2024

I was playing around and just decide to upgrade my version of bash (the one that ships with OS X is pretty old). I did it via home brew: brew install bash and then followed the instructions here: http://concisionandconcinnity.blogspot.com/2009/03/upgrade-bash-to-40-in-mac-os-x.html to register the new version and set it as the default for my user. After I did that, the double errors went away.

from bash-it.

tswicegood avatar tswicegood commented on May 22, 2024

Out of curiousity, does #106 help with this? Not sure if they're related, but they might be?

from bash-it.

farneman avatar farneman commented on May 22, 2024

@tswicegood I've pulled in the changes from #106, but I'm still seeing the same issue. Perhaps the xterm plugin still needs some work.

from bash-it.

hansstimer avatar hansstimer commented on May 22, 2024

Upgrading to bash 4.2 solved the prompt problem for me. I followed meirish's directions above.

from bash-it.

kyanny avatar kyanny commented on May 22, 2024
$ rm ~/.bash_it/plugins/enabled/xterm.plugins.bash

It works for me. Broken prompt no longer shown. OSX Lion (10.7.3) and Bash 3.2.48(1)-release (x86_64-apple-darwin11)

from bash-it.

tswicegood avatar tswicegood commented on May 22, 2024

I just ran into this on a fresh install of bash-it, but couldn't track down the culprit. I'll try nixing the xterm plugin and see if that fixes it. Odd part was that on another fresh install it worked. I think there's a difference in the default .bash_profile and my .bash_profile that changed it up. Wasn't TERM -- I checked that.

from bash-it.

farneman avatar farneman commented on May 22, 2024

I've confirmed that removing/unenabling the xterm plugin fixes the issue for me.

from bash-it.

tswicegood avatar tswicegood commented on May 22, 2024

Ok, so the fix here is to not use the xterm plugin. I've renamed it to _xterm and modified the installation script to ignore it. That should fix it for most people while not entirely removing the functionality.

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.