mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Merge pull request #16 from piecioshka/master
Create automatic command for plugin setup
This commit is contained in:
commit
bd11c34e84
1 changed files with 6 additions and 2 deletions
|
@ -6,9 +6,11 @@
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-autosuggestions
|
$ git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-autosuggestions
|
||||||
|
|
||||||
cat >> ~/.zshrc << "EOF"
|
$ cat >> ~/.zshrc << "EOF"
|
||||||
|
|
||||||
|
# Setup zsh-autosuggestions
|
||||||
source ~/.zsh-autosuggestions/autosuggestions.zsh
|
source ~/.zsh-autosuggestions/autosuggestions.zsh
|
||||||
|
|
||||||
# Enable autosuggestions automatically
|
# Enable autosuggestions automatically
|
||||||
|
@ -20,6 +22,8 @@ zle -N zle-line-init
|
||||||
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed as
|
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed as
|
||||||
# zsh-autosuggestions is designed to be unobtrusive)
|
# zsh-autosuggestions is designed to be unobtrusive)
|
||||||
bindkey '^T' autosuggest-toggle
|
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