zsh-autosuggestions/README.mkd

21 lines
544 B
Markdown
Raw Normal View History

2013-10-26 18:05:17 +02:00
# zsh-autosuggestions
2013-10-29 20:08:56 +01:00
> [Fish](http://fishshell.com/)-like fast/unobtrusive autosuggestions for zsh.
> [Shelr demo](http://shelr.tv/records/527007a99660803c5d000048).
2013-10-26 18:05:17 +02:00
## Installation
```zsh
2013-10-26 18:05:17 +02:00
git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-autosuggestions
cat >> ~/.zshrc << "EOF"
source ~/.zsh-autosuggestions/autosuggestions.zsh
# Enable autosuggestions automatically
zle-line-init() {
2013-10-29 18:32:51 +01:00
zle autosuggest-start
2013-10-26 18:05:17 +02:00
}
zle -N zle-line-init
2013-10-27 14:50:35 +01:00
# use ctrl+f to accept a suggested word
2013-10-29 18:32:51 +01:00
bindkey '^F' autosuggest-accept-suggested-word
2013-10-26 18:05:17 +02:00
EOF
```