Skip to content

Commit

Permalink
Merge pull request #35 from ublue-os/atuin
Browse files Browse the repository at this point in the history
feat(bluefin-cli): Enable atuin and ble.sh out of the box
  • Loading branch information
castrojo authored Jan 28, 2024
2 parents 8d7cd31 + b55076b commit 7f6fdf1
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 7f6fdf1

Please sign in to comment.