summaryrefslogtreecommitdiff
path: root/user:hugues/KeyBindings.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2014-01-24 12:39:58 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2014-01-24 12:39:58 +0100
commit1040af12c70ffd923e4dd1989a660c26e91e103e (patch)
treeba064831e575ad8e3faa11fb78d24df113202ce9 /user:hugues/KeyBindings.zsh
parentb68e23cd00915e94389fbe5f56508113655a1880 (diff)
parenta619da8a796876ac62857f54f41f444e2e12d087 (diff)
Merge branch 'master' into HackyGit
Diffstat (limited to 'user:hugues/KeyBindings.zsh')
-rw-r--r--user:hugues/KeyBindings.zsh8
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