Merge pull request #35 from wgallios/master

Created simple install sh script
This commit is contained in:
Michael Robinson
2014-12-09 15:52:38 +13:00
2 changed files with 35 additions and 20 deletions

View File

@@ -3,26 +3,9 @@
> [Fish](http://fishshell.com/)-like fast/unobtrusive autosuggestions for zsh.
## Installation
```sh
$ git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-autosuggestions
$ cat >> ~/.zshrc << "EOF"
# Setup zsh-autosuggestions
source ~/.zsh-autosuggestions/autosuggestions.zsh
# Enable autosuggestions automatically
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed as
# zsh-autosuggestions is designed to be unobtrusive)
bindkey '^T' autosuggest-toggle
EOF
```
$ git clone git://github.com/wgallios/zsh-autosuggestions ~/.zsh-autosuggestions
sh .zsh-autosuggestions/install
```
Any widget that moves the cursor to the right(forward-word, forward-char...)