mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2026-07-21 20:11:04 +00:00
10 lines
409 B
Bash
10 lines
409 B
Bash
|
|
#--------------------------------------------------------------------#
|
|
# Setup #
|
|
#--------------------------------------------------------------------#
|
|
|
|
# Precmd hooks for initializing the library and starting pty's
|
|
autoload -Uz add-zsh-hook
|
|
|
|
# Asynchronous suggestions are generated in a pty
|
|
zmodload zsh/zpty 2> /dev/null || zpty() { return 1 }
|