mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Update instructions
This commit is contained in:
parent
6d2146a542
commit
77ef2e0259
1 changed files with 5 additions and 5 deletions
10
README.mkd
10
README.mkd
|
@ -1,6 +1,6 @@
|
||||||
# zsh-autosuggestions
|
# 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
|
## Installation
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@ cat >> ~/.zshrc << "EOF"
|
||||||
source ~/.zsh-autosuggestions/autosuggestions.zsh
|
source ~/.zsh-autosuggestions/autosuggestions.zsh
|
||||||
# Enable autosuggestions automatically
|
# Enable autosuggestions automatically
|
||||||
zle-line-init() {
|
zle-line-init() {
|
||||||
enable-autosuggestions
|
zle autosuggest-start
|
||||||
}
|
}
|
||||||
zle -N zle-line-init
|
zle -N zle-line-init
|
||||||
# use ctrl+t to toggle autosuggestions
|
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed)
|
||||||
bindkey '^T' toggle-autosuggestions
|
bindkey '^T' autosuggest-toggle
|
||||||
# use ctrl+f to accept a suggested word
|
# use ctrl+f to accept a suggested word
|
||||||
bindkey '^F' accept-suggested-word
|
bindkey '^F' autosuggest-accept-suggested-word
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue