3 ms·
History manipulation in bash only reminds me why I have both the current commands history number and the last return code in my prompt. I don't need colors, or
by INTPenis 10y ago
History manipulation in bash only reminds me why I have both the current commands history number and the last return code in my prompt.
I don't need colors, or anything fancy in my prompt, but those two things I find to be really useful.
export PS1='[\u@\h \W](\!/$?)$ '