Show your terminal prompt

prompt

3 Likes

cli
its called the default :rofl:

1 Like

I totally agree, and I like the concept!

It would be a potentially helpful topic, if you/all had posted actual config together with the show-off images :wink:
Unless you have copyrighted :copyright: your prompts.

Since the title does not limit shells…

here is by Bash prompt
echo ${PS1@Q}                                                                                                                                                                                                                       
'\[\e[0;96m\]\t\[\e[0m\]$( Terr=$? ; if [ ! $Terr = "0" ]; then echo -e " "\[\e[0\;1\;41m\] "Err:$Terr" \[\e[0m\] ; fi ) [\[\e[0;32m\]$(echo ${LOGNAME:+me})\[\e[0m\]@\[\e[0;91m\]\s\[\e[0m\]] \[\e[0m\]{\[\e[0;1;2;96m\]$(git branch 2>/dev/null | grep ^* | colrm 1 2)\[\e[0m\]}\[\e[0;92m\]\w\n\[\e[0;1;41m\] >>> \[\e[0;38;5;214m\] \$ \[\e[0m\]'
3 Likes

In my case it should be trivial to reproduce, but just in case, here it is:

#.zshrc:
PROMPT='%F{blue}%B%2~%b%f🐸 '
3 Likes

Ok.

As my prompt is a starship based prompt I have put my starship.toml to https://github.com/manfredlotz/starship.toml

2 Likes

For Bash users:

Bash Prompt Generator help you to create your customized Bash prompt whatever you like, no headache and without using any third-party program

https://scriptim.github.io/bash-prompt-generator/

Screenshot_20230327_173452

1 Like

Nothing fancy, bash user here
Screenshot-2023-03-27_10:59:22

3 Likes
[mindyour@ownbusiness ~]$

:stuck_out_tongue_closed_eyes:

2 Likes

(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.

It’s not much, but it’s mine:

image

1 Like

I use that utter rubbish shell fish
Screenshot_20230328_073539

2 Likes

image

2 Likes

First time messing around with prompt
Screenshot_2023-03-28_14-11-02

1 Like

image
image

1 Like

2 Likes

2023-03-28-155009_513x143_scrot

2 Likes

my oh-my-zsh. colorful but useless

pacseek took 11 hours :smirk:

2 Likes

My prompt is unchanged from the EOS original one, except that I added some colour. This is what the line in .bashrc looks like:

PS1='[\033[0;32m][\u@\h[\033[1;32m] \W[\033[0;32m]][\033[0m]$ ’

which gives this output:
image

2 Likes

It is my normal, untouched .bashrc:

When I apply your suggestion, I get this:

Think I’m done with customizing my shell prompt here and now. :rofl:

3 Likes

+1 for the rubbish shell fish. :two_hearts: :fish:

5 Likes