You are not logged in.

#1 Yesterday 20:18:00

Strykar
Member
Registered: 2018-02-17
Posts: 61
Website

Powerline prompt has "3" suffixed in new tabs only in Kitty terminal

I use atuin + ble.sh + powerline with bash in a kitty terminal.

Recently I noticed that when I open a new tab, each new tab I manually open after has a 3 appended to the powerline prompt.
My kitty auto-starts via gnome on login with a few tabs and windows
Screenshot-From-2025-06-27-01-30-52.png
If I disable powerline, the prompt is fine and this does not happen with terminals other than kitty.
If I hit enter once in the new tab, it goes away.

Some of the things I've tried are to load things one by one to see if its an exit code of something bash / .bashrc is loading but that doesn't appear to affect it weirdly.
Other things like:

kitty @ launch --type=tab bash --noprofile --rcfile ~/.bashrc-clean-env -i
kitty @ launch --type=tab bash --noprofile --norc -i -c '\''exec bash --noprofile --rcfile ~/.bashrc-clean'\''
rcfile with set +x exec 2> ~/bash-clean-env-debug.log

Since nobody else has reported the issue on the kitty github, I am guessing it is not a kitty / shell-integration issue?
How do I pinpoint what is causing the 3 to appear in new tabs only?

Last edited by Strykar (Yesterday 20:19:13)

Offline

#2 Yesterday 21:06:37

seth
Member
Registered: 2012-09-03
Posts: 64,915

Re: Powerline prompt has "3" suffixed in new tabs only in Kitty terminal

when I open a new tab, each new tab I manually open after has a 3 … hit enter once in the new tab, it goes away

atuin

?
But this might also be some process status (ie. would have to come from the bashrc)
What happens if you enter "false", do you get an "1"?

Offline

#3 Yesterday 21:43:31

Strykar
Member
Registered: 2018-02-17
Posts: 61
Website

Re: Powerline prompt has "3" suffixed in new tabs only in Kitty terminal

That was my first thought too, happy to test again.
false does get me a 1.

Offline

#4 Yesterday 21:53:58

seth
Member
Registered: 2012-09-03
Posts: 64,915

Re: Powerline prompt has "3" suffixed in new tabs only in Kitty terminal

Then it's the return status of the last command - what does your bashrc look like?
You can also try "bash -x" what will trace the invocation.

Offline

Board footer

Powered by FluxBB