From ec8d41b39641dd69b0072fbbffb269862323d7ef Mon Sep 17 00:00:00 2001 From: Andrejus Date: Wed, 25 Mar 2026 09:57:34 +0000 Subject: [PATCH] fix(zsh): restore ^S binding, suppress ^D logout warning Move stty -ixon from widgets.zsh (lazy-loaded inside zle-line-init hook) back to .zshrc so it runs before ZLE starts. Inside a ZLE hook, the change only survives the first prompt because ZLE restores saved terminal settings (with ixon on) between prompts. Bind ^D to delete-char so pressing it on an empty line no longer triggers the IGNORE_EOF 'use exit to exit' warning spam. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- home/.zsh/widgets.zsh | 4 +++- home/.zshrc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/home/.zsh/widgets.zsh b/home/.zsh/widgets.zsh index 56d7f76..3b579c7 100644 --- a/home/.zsh/widgets.zsh +++ b/home/.zsh/widgets.zsh @@ -1,6 +1,8 @@ _dots_load_keybindings() { bindkey -e - stty -ixon 2>/dev/null + + # Ctrl+D: delete char (suppress IGNORE_EOF logout warning) + bindkey '^D' delete-char # Ctrl+J: zoxide jump _dots_zoxide_widget() { diff --git a/home/.zshrc b/home/.zshrc index 0e0feb6..bd51af9 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -110,7 +110,7 @@ _dots_load_history() { } _dots_load_history -setopt IGNORE_EOF +stty -ixon 2>/dev/null # --- Tool init (cached) ---