From 438448c867ca7afda907f17a884b417a1743ac05 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 24 Jan 2014 12:20:37 +0100 Subject: [Keys] don’t ask. seriously. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user:hugues/KeyBindings.zsh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh index 1c4a693..fb241f4 100644 --- a/user:hugues/KeyBindings.zsh +++ b/user:hugues/KeyBindings.zsh @@ -164,15 +164,9 @@ bindkey -v # This setup may change the `ESC' keybinding to `C-d'. That defeats the # possibility to exit zsh by pressing `C-d' (which usually sends EOF). # With this widget, you can type `:q' to exit the shell from vicmd. -if [ $( _process_tree | grep -o zsh | wc -l ) -gt 1 ] -then - CONFIRM_EXIT="" -else - CONFIRM_EXIT="confirm " -fi function ft-zshexit { [[ -o hist_ignore_space ]] && BUFFER=' ' - BUFFER="${BUFFER}${CONFIRM_EXIT}exit" + BUFFER="${BUFFER}exit" zle .accept-line } zle -N q ft-zshexit -- cgit v1.2.3