Here is my prompt. Currently, I am using zsh because of better completion of svn. Bus occasionally I am using fish. I need to enhance the svn completion. Then I will presumably completely switch to fish.
My prompt is built by starship but I have turned off those icons which I do not need.
I am a zsh user. I have more or less the same prompt since 20+ years.
These are my criteria
the prompt needs to distinguish between root and regular user
the prompt needs to tell on which machine I am
the prompt needs to show the current working directory
I prefer to have a 2 line prompt because then, the second line has always the same short length. I dont like a variable length when I have to type in that line which is the case with a 1 line prompt.
PS1='[\w]$ '
Of course change “$” to “#” where appropriate.
One more thing
I HATE MANJARO’S DEFAULT KONSOLE PROMPT. The terminal is a serious thing IMHO. Also I’m not very keen about “prompts” that span several lines, even if I could afford those super-giant screens some of you are fond of. (end rant)
It would be a potentially helpful topic, if you/all had posted actual config together with the show-off images
Unless you have copyrighted your prompts.
(Show your terminal prompt - #14 by Zesko)
It could almost be done with an ordinary “bash” script or C++ program. Have to be comfortable parsing strings and know those ANSI escape codes. For most cases anyway. I’ve done stuff like that but not for a terminal prompt, LOL.