mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
14 lines
326 B
Text
14 lines
326 B
Text
|
# 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
|