Giter VIP home page Giter VIP logo

Comments (3)

kisp avatar kisp commented on July 17, 2024

cc @rkitover @guenhter

I did a git bisect and 0eb0947 was identified as the problematic commit.

Indeed, when I run git revert 0eb0947955ccf2855dcef88ad48aaef1fbb5c188, the problem goes away and my prompt is shown as

✔  ~
root@localhost  #️

Strangely, when I log into my local machine via ssh the prompt works (without having to revert).

Any ideas? :)

from bash-git-prompt.

kisp avatar kisp commented on July 17, 2024

Oh, I see... I think the GIT_PROMPT_END_ROOT version misses a $.

#️ {ResetColor} should be #️${ResetColor}

Do you want me to provide a PR? :)

diff --git a/themes/Solarized_UserHost.bgptheme b/themes/Solarized_UserHost.bgptheme
index aa3638a..0f18940 100644
--- a/themes/Solarized_UserHost.bgptheme
+++ b/themes/Solarized_UserHost.bgptheme
@@ -15,7 +15,7 @@ function override_git_prompt_colors() {
   GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_${Yellow}${PathShort}"
   GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
   GIT_PROMPT_END_USER="\n${BoldBlue}\\u${bold_bright_white}@${BoldBlue}\\h${BoldRed} ➤${ResetColor} "
-  GIT_PROMPT_END_ROOT="\n${BoldBlue}\\u${bold_bright_white}@${BoldBlue}\\h${BoldRed} #️ {ResetColor} "
+  GIT_PROMPT_END_ROOT="\n${BoldBlue}\\u${bold_bright_white}@${BoldBlue}\\h${BoldRed} #️${ResetColor} "
   GIT_PROMPT_LEADING_SPACE=1
   GIT_PROMPT_PREFIX="${Cyan}["
   GIT_PROMPT_SUFFIX="${Cyan}]"

from bash-git-prompt.

rkitover avatar rkitover commented on July 17, 2024

Hi @kisp, sorry about that.

By the way, I am working on my own prompt, which is similar to this theme:

https://github.com/rkitover/sh-prompt-simple

from bash-git-prompt.

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.