Update instructions

This commit is contained in:
Thiago de Arruda 2013-10-29 14:32:51 -03:00
parent 6d2146a542
commit 77ef2e0259

View file

@ -1,6 +1,6 @@
# zsh-autosuggestions
> [Fish](http://fishshell.com/)-like autosuggestions on top of zsh 'predict-on' widget.
> [Fish](http://fishshell.com/)-like fast/unobtrusive autosuggestions for zsh
## Installation
@ -10,12 +10,12 @@ cat >> ~/.zshrc << "EOF"
source ~/.zsh-autosuggestions/autosuggestions.zsh
# Enable autosuggestions automatically
zle-line-init() {
enable-autosuggestions
zle autosuggest-start
}
zle -N zle-line-init
# use ctrl+t to toggle autosuggestions
bindkey '^T' toggle-autosuggestions
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed)
bindkey '^T' autosuggest-toggle
# use ctrl+f to accept a suggested word
bindkey '^F' accept-suggested-word
bindkey '^F' autosuggest-accept-suggested-word
EOF
```