-
% kitty --version
kitty 0.25.1 created by Kovid Goyal
% zsh --version
zsh 5.9 (x86_64-pc-linux-gnu)If I run: % kitty -e /bin/zsh -i -c "echo hello"a new window appears with "hello" printed, as expected. However, it remains displayed for about 5 seconds before disappearing. Why? with other terminal emulators such as Alacritty or Konsole, the window instantly disappears: zsh_hello.mp4% time alacritty -e /bin/zsh -i -c "echo hello"
alacritty -e /bin/zsh -i -c "echo hello" 0,15s user 0,10s system 119% cpu 0,205 total
% time konsole -e /bin/zsh -i -c "echo hello"
konsole -e /bin/zsh -i -c "echo hello" 0,23s user 0,10s system 97% cpu 0,332 total
% time kitty -e /bin/zsh -i -c "echo hello"
kitty -e /bin/zsh -i -c "echo hello" 0,20s user 0,10s system 5% cpu 5,345 totalIf I run instead % kitty -e /bin/bash -i -c "echo hello"then the window disappears instantly (same behavior for every terminal emulator): % time alacritty -e /bin/bash -i -c "echo hello"
alacritty -e /bin/bash -i -c "echo hello" 0,06s user 0,06s system 79% cpu 0,140 total
% time konsole -e /bin/bash -i -c "echo hello"
konsole -e /bin/bash -i -c "echo hello" 0,18s user 0,06s system 89% cpu 0,270 total
% time kitty -e /bin/bash -i -c "echo hello"
kitty -e /bin/bash -i -c "echo hello" 0,12s user 0,06s system 80% cpu 0,233 totalIs there a way to suppress this delay when running a zsh interactive command? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
xfzv
May 31, 2022
Replies: 2 comments 4 replies
-
|
Does not reproduce for me
time kitty -e /bin/zsh -i -c "echo hello"
real 0.243
user 0.186
sys 0.066
maxmem 119 MB
faults 5
It will be something in your zsh rc files bisect them to find out.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Read the powerlevel10k readme it will tell you
…On Mon, May 30, 2022 at 10:32:03AM -0700, xfzv wrote:
> Does not reproduce for me time kitty -e /bin/zsh -i -c "echo hello" real 0.243 user 0.186 sys 0.066 maxmem 119 MB faults 5 It will be something in your zsh rc files bisect them to find out.
Thank you. Indeed, turns out the delay is due to [powerlevel10k](https://github.com/romkatv/powerlevel10k). I can reproduce consistently without any other zsh related config file, only powerlevel10k.
I wonder why this occurs specifically with kitty and not with Alacritty, Konsole or Urxvt though.
--
Reply to this email directly or view it on GitHub:
#5148 (reply in thread)
You are receiving this because you commented.
Message ID: ***@***.***>
--
_____________________________________
Dr. Kovid Goyal
https://www.kovidgoyal.net
https://calibre-ebook.com
_____________________________________
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed with
close_on_child_death yes, many thanks to @romkatv for pointing me in the right direction