4 ms·
Where can I get that PS1 from the shell in the video? It appears to have a green check mark if the previous command returned 0 otherwise some red symbol. Looks
by ericfrederich 12y ago
Where can I get that PS1 from the shell in the video?
It appears to have a green check mark if the previous command returned 0 otherwise some red symbol.
Looks cool
- protomyth 12y agofor bash http://stackoverflow.com/questions/16715103/bash-prompt-with-last-exit-code http://stackoverflow.com/questions/16715103/bash-prompt-with...
- thedufer 12y agoThe default oh-my-zsh theme does something similar - first character in the PS1 is `➜`, in grey if the previous command returned 0, red otherwise. It just checks `$?`, I assume.