GithubHelp home page GithubHelp logo

Comments (5)

mattbanks avatar mattbanks commented on July 17, 2024

Actually, it looks like the colors just aren't rendering at all in iTerm2. The changes to the prompt flow through, but the colors aren't making their way over.

from dotfiles.

mattbanks avatar mattbanks commented on July 17, 2024

Did some more digging and found it's in the check that sets TERM=xterm-256color. I copied the lines 5-6 from Mathias Bynes dotfiles .bash_prompt and replaced line 15-17 from your .bash_prompt and it gives me all colors in iTerm2. I can fork the repo and submit a pull request in the morning.

from dotfiles.

necolas avatar necolas commented on July 17, 2024

Hi Matt. Originally, I didn't include those lines from Mathias's file because it "breaks" the terminal colors in Snow Leopard (it doesn't support 256 colors). Having said that, it would be great if iTerm2 automatically accepted the prompt...maybe you can help me find a way to have it included in the conditional on line 15.

For the time being, I've been changing iTerm2's preferences:

Profiles > Terminal > Report terminal type: xterm-256color

from dotfiles.

mattbanks avatar mattbanks commented on July 17, 2024

Ah gotcha - I'm on Lion so I couldn't test Snow Leopard. I think the reporting type is a good workaround. Maybe just add that in the iTerm line at the top of .bash_prompt?

from dotfiles.

necolas avatar necolas commented on July 17, 2024

I'll try and find out how best to do that. Also, please let me know if you experience any rendering issues. There are occasions when I edit a file using vim and scrolling down through the file causes the rendered position of lines to jump around - can't work out what is behind that.

from dotfiles.

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.