Skip to content

Commit

Permalink
feat: Get Atuin from bluefin-cli (ublue-os#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles authored and bayou-brogrammer committed Feb 12, 2024
1 parent c314a45 commit 9d89819
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions __Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ RUN rpm-ostree override replace \
rm -f /etc/yum.repos.d/_copr_kylegospo-gnome-vrr.repo && \
rm -f /etc/yum.repos.d/_copr_kylegospo-prompt.repo

# Copy atuin from bluefin-cli
COPY --from=ghcr.io/ublue-os/bluefin-cli /usr/bin/atuin /usr/bin/atuin
COPY --from=ghcr.io/ublue-os/bluefin-cli /usr/share/bash-prexec /usr/share/bash-prexec

RUN /tmp/scripts/starship.sh && \
/tmp/scripts/build.sh && \
/tmp/scripts/image-info.sh && \
Expand Down
15 changes: 15 additions & 0 deletions just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,18 @@ dx-group:
sudo usermod -aG lxd $USER
sudo usermod -aG libvirt $USER
@echo "Logout to use docker, incus-admin, lxd, libvirt"

# Add atuin
atuin:
#!/usr/bin/bash
shell=$(basename $SHELL)
if test $shell = "fish"; then
echo "Adding atuin to your config.fish"
printf '\nif status is-interactive\n atuin init fish | source\nend\n' >> ${XDG_CONFIG_HOME:-$HOME/.config}/fish/config.fish
elif test $shell = "zsh"; then
echo "Adding atuin to your .zshrc"
printf '\neval "$(atuin init zsh)"\n' >> ${ZDOTDIR:-$HOME}/.zshrc
elif test $shell = "bash"; then
echo "Adding bash-prexec and atuin to your .bashrc"
printf '\n[[ -f /usr/share/bash-prexec ]] && source /usr/share/bash-prexec\neval "$(atuin init bash)"\n' >> ~/.bashrc
fi

0 comments on commit 9d89819

Please sign in to comment.