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
6
7
7
# Update the package list and install wget and bash
8
8
RUN 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 && \
10
10
apt-get clean && \
11
11
rm -rf /var/lib/apt/lists/*
12
12
Original file line number Diff line number Diff line change 9
9
# Do not use `set -euo pipefail` or similar because this a
10
10
# bash completion script and it will change the behavior of the shell invoking it
11
11
12
- export ACSH_VERSION=0.3.5
12
+ export ACSH_VERSION=0.4.0
13
13
14
14
# ##############################################################################
15
15
#
@@ -657,12 +657,26 @@ show_help() {
657
657
echo " For more information, visit: https://autocomplete.sh"
658
658
}
659
659
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
+
660
669
show_config () {
661
670
local config_file config_value
662
671
local term_width small_table rest
663
672
664
673
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
666
680
# echo enabled in green
667
681
echo -e " STATUS: \033[32;5mEnabled\033[0m \033[0m"
668
682
else
Original file line number Diff line number Diff line change 4
4
# This install script downloads the latest version of the LLMs
5
5
6
6
# The URL of the latest version of the LLMs
7
- ACSH_VERSION=" v0.3.4 "
7
+ ACSH_VERSION=" v0.4.0 "
8
8
BRANCH_OR_VERSION=${1:- $ACSH_VERSION }
9
9
URL=" https://raw.githubusercontent.com/closedloop-technologies/autocomplete-sh/${BRANCH_OR_VERSION} /autocomplete.sh"
10
10
You can’t perform that action at this time.
0 commit comments