Giter Site home page Giter Site logo

dotfiles's People

Contributors

willhug avatar

Watchers

 avatar  avatar

dotfiles's Issues

Bashrc prompt is not properly escaping color characters

The bash prompt is using functions to generate the colors in the prompt, unfortunately when bash calculates the length of the prompt (and thus where the end of the line is), it uses the number of characters in $PS1 and not the amount of characters rendered (ignoring hidden characters).

The solution described here is to wrap the color changes in [] but as far as I can tell, when that's not in the prompt, it cuts of the data, this will likely need some re-working.

For some reason when I'm yanking and putting in vim it's doing autoindentation

So I get things like this (edit this message to see the whitespace issue):

90 bash_git_has_untracked_files() {
91 if [ $(in_git_repo) && $(git_untracked_files) -gt 0 ]; then
92 printf "v"
93 fi
94 }
95 bash_git_has_untracked_files() {
96 if [ $(in_git_repo) && $(git_untracked_files) -gt 0 ]; then
97 printf "v"
98 fi
99 }

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.