Skip to content

Commit

Permalink
feat(bluefin-cli): Enable atuin and ble.sh out of the box
Browse files Browse the repository at this point in the history
Retrieves and extracts ble.sh. Enables both atuin and ble.sh via the bashrc
  • Loading branch information
EyeCantCU committed Jan 28, 2024
1 parent 8d7cd31 commit b55076b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions toolboxes/bluefin-cli/Containerfile.bluefin-cli
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +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

# Change root shell to BASH
RUN sed -i -e '/^root/s/\/bin\/ash/\/bin\/bash/' /etc/passwd
# 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
4 changes: 4 additions & 0 deletions toolboxes/bluefin-cli/files/etc/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ if [ -z "$BASHRCSOURCED" ]; then
STARSHIP_CONFIG=/etc/starship.toml
export STARSHIP_CONFIG
eval "$(starship init $SHELL)"

# Enable atuin and ble.sh
source /usr/share/blesh/ble.sh
eval "$(atuin init $SHELL)"
fi


Expand Down

0 comments on commit b55076b

Please sign in to comment.