From 73b555e4e81fafa66b7905fe5faf33021b31bfe5 Mon Sep 17 00:00:00 2001 From: m2Giles <69128853+m2Giles@users.noreply.github.com> Date: Sun, 28 Jan 2024 12:47:00 -0500 Subject: [PATCH] fix: Remove ble.sh for bash-prexec to reduce bling fix: Fix host tab-completion by removing ble.sh --- toolboxes/bluefin-cli/Containerfile.bluefin-cli | 10 +++++----- toolboxes/bluefin-cli/files/etc/bashrc | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/toolboxes/bluefin-cli/Containerfile.bluefin-cli b/toolboxes/bluefin-cli/Containerfile.bluefin-cli index 4c8e97a..a74d599 100644 --- a/toolboxes/bluefin-cli/Containerfile.bluefin-cli +++ b/toolboxes/bluefin-cli/Containerfile.bluefin-cli @@ -24,8 +24,8 @@ RUN sed -i '349,489 s/^/#/' /usr/bin/entrypoint && \ sed -i '499,1355 s/^/#/' /usr/bin/entrypoint && \ sed -i '1357 s/^/#/' /usr/bin/entrypoint -# Use and configure bash, retrieve ble.sh -RUN wget -q $(curl -s https://api.github.com/repos/akinomyoga/ble.sh/releases/latest | grep "browser_download_url" | cut -d '"' -f 4) -O /tmp/ble.tar.xz && \ - mkdir -p /usr/share/blesh && \ - tar xJf /tmp/ble.tar.xz -C /usr/share/blesh --strip-components=1 && \ - sed -i -e '/^root/s/\/bin\/ash/\/bin\/bash/' /etc/passwd +# Use and configure bash, retrieve bash-prexec +RUN curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o /tmp/bash-prexec && \ + mkdir -p /usr/share/ && \ + cp /tmp/bash-prexec /usr/share/bash-prexec && \ + rm -rf /tmp/* diff --git a/toolboxes/bluefin-cli/files/etc/bashrc b/toolboxes/bluefin-cli/files/etc/bashrc index 37d83ad..e228152 100644 --- a/toolboxes/bluefin-cli/files/etc/bashrc +++ b/toolboxes/bluefin-cli/files/etc/bashrc @@ -50,7 +50,7 @@ if [ -z "$BASHRCSOURCED" ]; then eval "$(starship init $SHELL)" # Enable atuin and ble.sh - source /usr/share/blesh/ble.sh + source /usr/share/bash-prexec eval "$(atuin init bash)" fi