diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2014-01-24 12:20:37 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2014-10-21 12:58:56 +0200 |
commit | 8244f4eefb10fd912a8fac3895bdb1378c04bc3e (patch) | |
tree | 943773c8566a95b498fb9b24cb4b91d3af8053f7 | |
parent | ee68c60cbd06193a377df46482031b3f35f0b5e7 (diff) |
[Keys] don’t ask. seriously.
-rw-r--r-- | user:hugues/KeyBindings.zsh | 8 |
1 files changed, 1 insertions, 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<RET>' 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 |