twolfson / sexy-bash-prompt

Bash prompt with colors, git statuses, and git branches.
MIT License
1.14k stars 155 forks source link

Style overrides #22

Closed rpdelaney closed 10 years ago

rpdelaney commented 10 years ago

Application of optional color over-rides are added on line 55. Any over-ride that is unset will be ignored. The naming scheme is PROMPT_*

Sorry if the multiple diffs on .bash_prompt are hard to follow in the aggregate. Some notes that might help:

twolfson commented 10 years ago

Looks pretty good, left some notes.

rpdelaney commented 10 years ago

Ship it! :shipit:

rpdelaney commented 10 years ago

Did a rebase to clean up the development history. How does that look?

twolfson commented 10 years ago

I am not too worried about history. I rely on tags + changelog to analyze/navigate history.

The code looks fine. I will do a final run through by the end of the weekend (this week is a bit hectic for me).

twolfson commented 10 years ago

Taking a look at this now.

twolfson commented 10 years ago

This has been merged/released in 0.16.0.

rpdelaney commented 10 years ago

PROMPT_BOLD is necessary somewhere so that the user can decide not to bold stuff.

I haven't thought of any use for PROMPT_RESET, but also I couldn't think of a reason not to provide it either, in case someone did.

twolfson commented 10 years ago

If someone wants something to not be bold, then they can set each of overrides to their unboldened variant.

Additionally, the code in the PR meant that the prompt_bold would be set after the colors were already set. In the actual PS1, there was no mention of prompt_bold.

I have found that it is better to stick with the minimal set of features. This way you get a few things:

twolfson commented 10 years ago

Thanks again for the PR =)

rpdelaney commented 10 years ago

Fair enough, thanks.