From 8941d32d45b275e2e81e9a29b2f879496f99cc3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Tue, 22 Dec 2015 15:03:00 +0100 Subject: [PATCH] togglable prediction --- .zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.zshrc b/.zshrc index e008571..a5a3e1d 100644 --- a/.zshrc +++ b/.zshrc @@ -86,6 +86,16 @@ zstyle :compinstall filename "$HOME/.zshrc" # Always do mid-word tab completion setopt complete_in_word +#---------------------------------- Prediction -------------------------------- + +autoload predict-on +autoload predict-off + +zle -N predict-on +zle -N predict-off +bindkey "^Z" predict-on # C-z +bindkey "^X^Z" predict-off # C-x C-z + #---------------------------------- History ----------------------------------- setopt append_history # Allow multiple terminal sessions to all append to one zsh command history