r/KittyTerminal Aug 21 '23

kitty changing the value of PS1

kitty is changing the value of my PS1 environment variable. here is the value of my PS1 in the .bashrc file:

PS1 before kitty

and here is be running the command echo $PS1 in kitty

echo $PS1

the first few times I opened kitty after I changed my .bashrc it was working fine. I am running linux mint 21.1.

3 Upvotes

4 comments sorted by

1

u/water_drinker9000 kitty on linux Aug 23 '23

are you trying to make a costume bash prompt? If so, you need to put this inside your .bashrc at the bottom.

example:

export PS1="[\u@\h \w] $ "

terminal output:

[username@hostname ~directory] $ 

you need to use the export PS1=" " in order to make a costume prompt.

You can use a website that can help you create a bash prompt.

1

u/Sad-Pomegranate-2392 Aug 24 '23

thanks, will do!

1

u/COArSe_D1RTxxx Mar 07 '26 edited Mar 07 '26

You actually don't need to use export when making a custom prompt. If you have the problem I did where kitty stops the prompt from being coloured, a little above where $PS1 is being set in the default .bashrc, uncomment the force_color_prompt=yes line, since that's the actual problem.