mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-22 15:52:31 +01:00
Add alterantive installation method
This commit is contained in:
parent
0371904875
commit
af72bd92ab
2 changed files with 86 additions and 0 deletions
13
.zsh-autosuggestionsrc
Executable file
13
.zsh-autosuggestionsrc
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
# Setup zsh-autosuggestions
|
||||
source $DIR/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue