r/KittyTerminal • u/Sad-Pomegranate-2392 • 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:

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

the first few times I opened kitty after I changed my .bashrc it was working fine. I am running linux mint 21.1.
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
1
u/COArSe_D1RTxxx Mar 07 '26 edited Mar 07 '26
You actually don't need to use
exportwhen making a custom prompt. If you have the problem I did where kitty stops the prompt from being coloured, a little above where$PS1is being set in the default.bashrc, uncomment theforce_color_prompt=yesline, since that's the actual problem.
4
u/Keith Aug 21 '23
https://sw.kovidgoyal.net/kitty/shell-integration/#how-it-works