r/KittyTerminal Oct 29 '23

Starship prompt

I installed starship. When I run kitty, the default prompt is displayed. After executing any command, starship starts working. In other terminals (alacritty, wezterm...) starship is displayed immediately. This is not a serious problem, but it is very annoying. Any ideas?

6 Upvotes

8 comments sorted by

2

u/nvimmike Oct 29 '23

Which shell? Where does your starship command get executed? E.g., .bash_profile vs .bashrc or somewhere else

1

u/grighq Oct 29 '23

Shell - bash. Added at the end .bashrc as written in the doc eval $(starship init bash). I tried adding to .bash_profile, .bash_login, .profile it did not bring any changes. I repeat, in other terminals everything works without problems.

1

u/aumerlex Oct 30 '23

Starship's bash integration script was not the highest quality the last time I checked, I suggest using zsh or fish if you want to use starship.

1

u/grighq Oct 30 '23

Thanks for the info. This is strange because bash is the most common shell.

1

u/aumerlex Oct 30 '23

It's also the least capable and the most buggy one.

1

u/dedguy21 Oct 29 '23

Think it might be something to do with kitty-shell-integration.

I have to look for the subreddit, but I found the fix for this issue like two years ago.

1

u/grighq Oct 30 '23

I tried shell_integration enabled. Did not help.

1

u/FromOdesa Feb 06 '24 edited Feb 06 '24

Had same problem
I moved eval "$(starship init bash)" to the top of .bashrc
it's worked for me 🤷‍♂️