restructure to make it work with antigen

This commit is contained in:
Jan Schmidle 2014-03-09 16:44:52 +01:00
parent ebe4cf251a
commit aa81de0ba1
4 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@
# ```
zmodload zsh/net/socket
source "${0:a:h}/completion-client.zsh"
source "${0:a:h}/lib/completion-client.zsh"
# configuration variables
AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=8'

View file

@ -1,7 +1,7 @@
#!/usr/bin/env zsh
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() {
setopt local_options no_hup

View file

@ -75,7 +75,7 @@ print "autosuggestion server started, pid: $$" >&2
zpty z ZLE_DISABLE_AUTOSUGGEST=1 zsh -i
print 'interactive shell started'
# 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
read-to-null &> /dev/null