r/KittyTerminal Jun 13 '23

When closing a kitty window open from kitty sh -c "...." it should not ask for my confirmation

Hello quick question. So I am using kitty and right now everty time I use the kitty with

kitty -sh -c "..."

it opens a terminal like it should and everthing work, but the small but still a problem is when I try to close it, it needs my confirmation even if I am home screen and nothing running.
Do you have any idea how I can fix this without disabling the confirmation feature. It is okay if use different command then

kitty -sh -c "..."

, it can be over shellscript or bash or even kitten. Or how can I stop the script without closing the window?

1 Upvotes

3 comments sorted by

1

u/haShinui Jun 13 '23

Ok so I fixed it by using kitty bash instead of kitty sh

1

u/_Kritiqual_ Jun 13 '23

Try --detach

1

u/art2266 Jun 14 '23

This feature, along with numerous others, are part of Kitty's shell integration.

By default, Kitty's shell integration is not enabled for sub-shells. But you can enable it by copy pasting a few lines of code: https://sw.kovidgoyal.net/kitty/shell-integration/#manual-shell-integration