Skip to content

Commit

Permalink
feat(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 2d0ebb2 commit 035bda4
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions toolboxes/bluefin-cli/Containerfile.bluefin-cli
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,17 @@ RUN apk update && \
mv /home/linuxbrew /home/homebrew && \
rm /toolbox-packages

# Change root shell to BASH
RUN sed -i -e '/^root/s/\/bin\/ash/\/bin\/bash/' /etc/passwd
# Make some symlinks
RUN mkdir -p /usr/local/bin && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree

# Use and configure bash with atuin and 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 && \
echo 'source /usr/share/blesh/ble.sh' >> /etc/bashrc && \
echo 'eval "$(atuin init bash)"' >> /etc/bashrc && \
sed -i -e '/^root/s/\/bin\/ash/\/bin\/bash/' /etc/passwd

0 comments on commit 035bda4

Please sign in to comment.