File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,8 @@ Type `help` for other internal `cht.sh` commands.
284284 cht.sh/go> /python zip list
285285```
286286
287- The ` cht.sh ` client has its configuration file which is located at ` ~/.cht.sh/cht.sh.conf ` .
287+ The ` cht.sh ` client has its configuration file which is located at ` ~/.cht.sh/cht.sh.conf `
288+ (location of the file can be overriden by the environment variable ` CHTSH_CONF ` ).
288289Use it to specify query options that you would use with each query.
289290For example, to switch syntax highlighting off create the file with the following
290291content:
Original file line number Diff line number Diff line change @@ -133,9 +133,13 @@ gen_random_str()
133133 fi
134134)
135135
136- if [ -e " $HOME " /.cht.sh/cht.sh.conf ]; then
136+ if [ -z " $CHTSH_CONF " ]; then
137+ CHTSH_CONF=" $HOME " /.cht.sh/cht.sh.conf
138+ fi
139+
140+ if [ -e " $CHTSH_CONF " ]; then
137141 # shellcheck disable=SC1090,SC2002
138- . " $HOME " /.cht.sh/cht.sh.conf
142+ . " $CHTSH_CONF "
139143fi
140144
141145if [ " $1 " = --read ]; then
You can’t perform that action at this time.
0 commit comments