9d1582e3 | 22-Aug-2018 |
Augustin Cavalier <waddlesplash@gmail.com> |
etc/profile: Add kallisti5's smiley-face $? indicator and use $ not >.
An example of the new prompt line format is:
~/Desktop/haiku :) $
Or if the last command exited in failure:
~/Desktop/haiku
etc/profile: Add kallisti5's smiley-face $? indicator and use $ not >.
An example of the new prompt line format is:
~/Desktop/haiku :) $
Or if the last command exited in failure:
~/Desktop/haiku :( $
The smiley-face will be either dark green or red, also depending on the command status.
I realize this could be a tad controversial, especially for those used to the old prompt, but it seems to be a pretty useful feature to me (and of course kallisti5 came up with it.) But if the bikeshed turns out to be too large, we can revert it and deal with it after the beta.
As for $ vs > -- BeOS R5 used $, most modern Linux uses $, and having > come after a space looks much stranger.
show more ...
|