mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
updated readme for new install script
This commit is contained in:
parent
32fb7930d8
commit
0d9aabedb2
1 changed files with 3 additions and 20 deletions
21
README.mkd
21
README.mkd
|
@ -5,26 +5,9 @@
|
||||||
> [Fish](http://fishshell.com/)-like fast/unobtrusive autosuggestions for zsh.
|
> [Fish](http://fishshell.com/)-like fast/unobtrusive autosuggestions for zsh.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
```
|
||||||
```sh
|
|
||||||
$ git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-autosuggestions
|
$ git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-autosuggestions
|
||||||
|
sh .zsh-autosuggestions/install
|
||||||
$ 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
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Any widget that moves the cursor to the right(forward-word, forward-char...)
|
Any widget that moves the cursor to the right(forward-word, forward-char...)
|
||||||
|
|
Loading…
Reference in a new issue