mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
restructure to make it work with antigen
This commit is contained in:
parent
ebe4cf251a
commit
aa81de0ba1
4 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
||||||
# ```
|
# ```
|
||||||
zmodload zsh/net/socket
|
zmodload zsh/net/socket
|
||||||
|
|
||||||
source "${0:a:h}/completion-client.zsh"
|
source "${0:a:h}/lib/completion-client.zsh"
|
||||||
|
|
||||||
# configuration variables
|
# configuration variables
|
||||||
AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=8'
|
AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=8'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
zmodload zsh/net/socket
|
zmodload zsh/net/socket
|
||||||
|
|
||||||
AUTOSUGGEST_SERVER_SCRIPT="${0:a:h}/completion-server.zsh"
|
AUTOSUGGEST_SERVER_SCRIPT="${0:a:h}/lib/completion-server.zsh"
|
||||||
|
|
||||||
autosuggest-ensure-server() {
|
autosuggest-ensure-server() {
|
||||||
setopt local_options no_hup
|
setopt local_options no_hup
|
|
@ -75,7 +75,7 @@ print "autosuggestion server started, pid: $$" >&2
|
||||||
zpty z ZLE_DISABLE_AUTOSUGGEST=1 zsh -i
|
zpty z ZLE_DISABLE_AUTOSUGGEST=1 zsh -i
|
||||||
print 'interactive shell started'
|
print 'interactive shell started'
|
||||||
# Source the init script
|
# Source the init script
|
||||||
zpty -w z "source '${0:a:h}/completion-server-init.zsh'"
|
zpty -w z "source '${0:a:h}/lib/completion-server-init.zsh'"
|
||||||
|
|
||||||
# wait for ok from shell
|
# wait for ok from shell
|
||||||
read-to-null &> /dev/null
|
read-to-null &> /dev/null
|
Loading…
Reference in a new issue