From aa81de0ba16fc0730dfd47fad833e6cb39ef9835 Mon Sep 17 00:00:00 2001 From: Jan Schmidle Date: Sun, 9 Mar 2014 16:44:52 +0100 Subject: [PATCH] restructure to make it work with antigen --- autosuggestions.zsh | 2 +- completion-client.zsh => lib/completion-client.zsh | 2 +- completion-server-init.zsh => lib/completion-server-init.zsh | 0 completion-server.zsh => lib/completion-server.zsh | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename completion-client.zsh => lib/completion-client.zsh (93%) rename completion-server-init.zsh => lib/completion-server-init.zsh (100%) rename completion-server.zsh => lib/completion-server.zsh (97%) diff --git a/autosuggestions.zsh b/autosuggestions.zsh index 34d482a..8ef4168 100644 --- a/autosuggestions.zsh +++ b/autosuggestions.zsh @@ -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' diff --git a/completion-client.zsh b/lib/completion-client.zsh similarity index 93% rename from completion-client.zsh rename to lib/completion-client.zsh index c8cd957..ac487ed 100755 --- a/completion-client.zsh +++ b/lib/completion-client.zsh @@ -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 diff --git a/completion-server-init.zsh b/lib/completion-server-init.zsh similarity index 100% rename from completion-server-init.zsh rename to lib/completion-server-init.zsh diff --git a/completion-server.zsh b/lib/completion-server.zsh similarity index 97% rename from completion-server.zsh rename to lib/completion-server.zsh index cd103f1..718193a 100755 --- a/completion-server.zsh +++ b/lib/completion-server.zsh @@ -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