togglable prediction

This commit is contained in:
Paweł Płazieński 2015-12-22 15:03:00 +01:00
parent 4e152b8e47
commit 8941d32d45

10
.zshrc
View File

@ -86,6 +86,16 @@ zstyle :compinstall filename "$HOME/.zshrc"
# Always do mid-word tab completion # Always do mid-word tab completion
setopt complete_in_word 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 ----------------------------------- #---------------------------------- History -----------------------------------
setopt append_history # Allow multiple terminal sessions to all append to one zsh command history setopt append_history # Allow multiple terminal sessions to all append to one zsh command history