Skip to content

Commit

Permalink
Change use sock recommended
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-yano committed Feb 4, 2023
1 parent d9da804 commit dde9e47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ Use zeno-ghq-cd zle
# if setting fzf-tmux options
# export ZENO_FZF_TMUX_OPTIONS="-p"

# Experimental: Use UNIX Domain Socket
export ZENO_ENABLE_SOCK=1
# Recommended: Use UNIX Domain Socket
# if disable
# export ZENO_ENABLE_SOCK=0

# if disable builtin completion
# export ZENO_DISABLE_BUILTIN_COMPLETION=1
Expand Down
1 change: 0 additions & 1 deletion shell/function/zeno-enable-sock
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#autoload

export ZENO_ENABLE_SOCK=1
export ZENO_PID=

: ${ZENO_SOCK_DIR:="${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/zeno-${UID}"}
Expand Down
3 changes: 2 additions & 1 deletion zeno.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ if [[ -z $ZENO_DISABLE_EXECUTE_CACHE_COMMAND ]]; then
command deno cache --unstable --no-check -- "${ZENO_ROOT}/src/cli.ts"
fi

if [[ -n $ZENO_ENABLE_SOCK ]]; then
export ZENO_ENABLE_SOCK="${ZENO_ENABLE_SOCK:-1}"
if [ $ZENO_ENABLE_SOCK == "1" ]; then
printf -v DENO_VERSION '%d%02d%02d' ${(s:.:)$(deno -V)[2]}
if (( DENO_VERSION >= 11600 )); then
zeno-enable-sock
Expand Down

0 comments on commit dde9e47

Please sign in to comment.