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>
This commit is contained in:
2026-03-25 09:57:34 +00:00
parent b62a6c00f9
commit ec8d41b396
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
_dots_load_keybindings() { _dots_load_keybindings() {
bindkey -e bindkey -e
stty -ixon 2>/dev/null
# Ctrl+D: delete char (suppress IGNORE_EOF logout warning)
bindkey '^D' delete-char
# Ctrl+J: zoxide jump # Ctrl+J: zoxide jump
_dots_zoxide_widget() { _dots_zoxide_widget() {

View File

@@ -110,7 +110,7 @@ _dots_load_history() {
} }
_dots_load_history _dots_load_history
setopt IGNORE_EOF stty -ixon 2>/dev/null
# --- Tool init (cached) --- # --- Tool init (cached) ---