zsh-autosuggestions/README.mkd

23 lines
646 B
Markdown
Raw Normal View History

2013-10-27 00:05:17 +08:00
# zsh-autosuggestions
2013-10-30 03:08:56 +08:00
> [Fish](http://fishshell.com/)-like fast/unobtrusive autosuggestions for zsh.
> [Shelr demo](http://shelr.tv/records/527007a99660803c5d000048).
2013-10-27 00:05:17 +08:00
## Installation
```zsh
2013-10-27 00:05:17 +08: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-30 01:32:51 +08:00
zle autosuggest-start
2013-10-27 00:05:17 +08:00
}
zle -N zle-line-init
2013-10-30 01:32:51 +08:00
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed)
bindkey '^T' autosuggest-toggle
2013-10-27 21:50:35 +08:00
# use ctrl+f to accept a suggested word
2013-10-30 01:32:51 +08:00
bindkey '^F' autosuggest-accept-suggested-word
2013-10-27 00:05:17 +08:00
EOF
```