mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-06-05 12:36:28 +08:00
11 lines
409 B
Bash
11 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 }
|