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:
@@ -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() {
|
||||
|
||||
@@ -110,7 +110,7 @@ _dots_load_history() {
|
||||
}
|
||||
_dots_load_history
|
||||
|
||||
setopt IGNORE_EOF
|
||||
stty -ixon 2>/dev/null
|
||||
|
||||
# --- Tool init (cached) ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user