File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ LABEL maintainer="sean@closedloop.tech"
66
77# Update the package list and install wget and bash
88RUN apt-get update && \
9- apt-get install -y bash curl wget jq bash-completion vim bats && \
9+ apt-get install -y bash curl wget jq bc bash-completion vim bats && \
1010 apt-get clean && \
1111 rm -rf /var/lib/apt/lists/*
1212
Original file line number Diff line number Diff line change 99# Do not use `set -euo pipefail` or similar because this a
1010# bash completion script and it will change the behavior of the shell invoking it
1111
12- export ACSH_VERSION=0.3.5
12+ export ACSH_VERSION=0.4.0
1313
1414# ##############################################################################
1515#
@@ -657,12 +657,26 @@ show_help() {
657657 echo " For more information, visit: https://autocomplete.sh"
658658}
659659
660+ # Function to check if running in a subshell
661+ is_subshell () {
662+ if [[ " $$ " != " $BASHPID " ]]; then
663+ return 0
664+ else
665+ return 1
666+ fi
667+ }
668+
660669show_config () {
661670 local config_file config_value
662671 local term_width small_table rest
663672
664673 echo_green " Autocomplete.sh - Configuration and Settings - Version $ACSH_VERSION "
665- if check_if_enabled; then
674+
675+ if is_subshell; then
676+ echo -e " STATUS: \033[33;5mUnknown\033[0m \033[0m"
677+ echo -e " Run \033[33;5msource autocomplete config\033[0m to see if autocomplete is enabled"
678+ return
679+ elif check_if_enabled; then
666680 # echo enabled in green
667681 echo -e " STATUS: \033[32;5mEnabled\033[0m \033[0m"
668682 else
Original file line number Diff line number Diff line change 44# This install script downloads the latest version of the LLMs
55
66# The URL of the latest version of the LLMs
7- ACSH_VERSION=" v0.3.4 "
7+ ACSH_VERSION=" v0.4.0 "
88BRANCH_OR_VERSION=${1:- $ACSH_VERSION }
99URL=" https://raw.githubusercontent.com/closedloop-technologies/autocomplete-sh/${BRANCH_OR_VERSION} /autocomplete.sh"
1010
You can’t perform that action at this time.
0 commit comments