diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-05-02 17:30:47 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-05-02 17:30:47 +0300 |
commit | 06603a2d62a0d150064c4c2b320f772eb04bb743 (patch) | |
tree | 8bf6bb54d2b00f1d2064a0f23077964c41b0e1b5 /internal/worker.zsh | |
parent | fdb0bb6af70c0ee70454fe456b4b40a9bba15118 (diff) |
work around bugs in kitty where it hangs on close
All terminals quit when the child process terminates. Except
kitty. Kitty doesn't quit until there are no open file
descriptors to the tty.
And the best thing? This is "better". Having the balls to
claim this nasty bug as feature is worthy of admiration.
Diffstat (limited to 'internal/worker.zsh')
-rw-r--r-- | internal/worker.zsh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/worker.zsh b/internal/worker.zsh index 3918893c..644d74c6 100644 --- a/internal/worker.zsh +++ b/internal/worker.zsh @@ -181,6 +181,7 @@ function _p9k_worker_start() { _p9k__worker_file_prefix=${TMPDIR:-/tmp}/p10k.worker.$EUID.$sysparams[pid].$EPOCHSECONDS sysopen -r -o cloexec -u _p9k__worker_resp_fd <( + exec 0</dev/null if [[ -n $_POWERLEVEL9K_WORKER_LOG_LEVEL ]]; then exec 2>$_p9k__worker_file_prefix.log setopt xtrace |