Skip to content

Commit

Permalink
Merge pull request #38 from ublue-os/m2Giles-patch2
Browse files Browse the repository at this point in the history
fix: Remove ble.sh for bash-prexec to reduce bling
  • Loading branch information
EyeCantCU authored Jan 28, 2024
2 parents 955fd09 + 73b555e commit 62eba3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions toolboxes/bluefin-cli/Containerfile.bluefin-cli
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
2 changes: 1 addition & 1 deletion toolboxes/bluefin-cli/files/etc/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 62eba3a

Please sign in to comment.