-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change use sock recommended #72
base: main
Are you sure you want to change the base?
Conversation
dde9e47
to
1ff2b48
Compare
1ff2b48
to
0bc23c2
Compare
# Recommended: Use UNIX Domain Socket | ||
# if disable | ||
# export ZENO_ENABLE_SOCK=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest changing the variable.
Expecting default values to be empty is a good design for zero configuration.
# Recommended: Use UNIX Domain Socket | |
# if disable | |
# export ZENO_ENABLE_SOCK=0 | |
# by default a unix domain socket is used | |
# if disable it | |
# export ZENO_DISABLE_SOCK=1 |
Also change the line in file shell/function/zeno-call-client-and-fallback.
--- a/shell/function/zeno-call-client-and-fallback
+++ b/shell/function/zeno-call-client-and-fallback
@@ -1,6 +1,6 @@
#autoload
-if [[ -n $ZENO_ENABLE_SOCK ]]; then
+if [[ -z $ZENO_DISABLE_SOCK ]]; then
(( $+functions[zeno-client] )) || zeno-enable-sock
if [[ -S $ZENO_SOCK ]]; then
zeno-client "$@"
@@ -1,6 +1,5 @@ | |||
#autoload | |||
|
|||
export ZENO_ENABLE_SOCK=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing variable.
export ZENO_ENABLE_SOCK=1 | |
unset ZENO_DISABLE_SOCK |
export ZENO_ENABLE_SOCK="${ZENO_ENABLE_SOCK:-1}" | ||
if [[ $ZENO_ENABLE_SOCK == "1" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing variable.
export ZENO_ENABLE_SOCK="${ZENO_ENABLE_SOCK:-1}" | |
if [[ $ZENO_ENABLE_SOCK == "1" ]]; then | |
if [[ -z $ZENO_DISABLE_SOCK ]]; then |
Also change the following line:
else
- unset ZENO_ENABLE_SOCK
+ export ZENO_DISABLE_SOCK=1
fi
No description provided.