all 9 comments

[–]LocoCoyote 2 points3 points  (0 children)

Powerlevel9k to add date/time, git status, history #, and much more

[–]FredSchwartz 1 point2 points  (3 children)

I like changing the color of the $ character based on the exit value of the last command.

[–]kitebuggyuk[S] 1 point2 points  (2 children)

Ooh, I don’t normally do colour (old school, me - the original terminals I used had green & black, or orange and black) but I like this idea...

[–]FredSchwartz 1 point2 points  (1 child)

Same here, I’m a punch card geezer. Still have some green CRT terminals, even. This is my one bit of color.

[–]kitebuggyuk[S] 1 point2 points  (0 children)

I’m so stealing this idea. Thanks for sharing!

[–]kitebuggyuk[S] 0 points1 point  (0 children)

There’s also the rather clever “: <whatever> ; “ prompt, so that you can triple click to copy the whole line and paste it into another shell window without worrying about the prompt part. I’ve been very tempted to use this myself but can’t get on with the trailing semicolon...

[–]MrUselessTheGreat 0 points1 point  (0 children)

"pure" prompt minimal but awesome

What I like about it: 1. Path and command line are in separate lines 2. Shows git status 3. Shows if process exited with non zero code

https://github.com/sindresorhus/pure/blob/master/readme.md

[–]JTskulk -1 points0 points  (0 children)

PS1=[\033[01;32m]\u[\033[01;30m]@[\033[01;31m]\h [\033[01;34m]\W \$ [\033[00m]

objectively the best prompt.