Closed rpdelaney closed 10 years ago
Looks pretty good, left some notes.
Ship it! :shipit:
Did a rebase to clean up the development history. How does that look?
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).
Taking a look at this now.
This has been merged/released in 0.16.0
.
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.
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:
Thanks again for the PR =)
Fair enough, thanks.
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: