gracefully fallback if atuin or zoxide aren't installed

This commit is contained in:
2024-02-07 12:26:00 -07:00
parent c6379020f9
commit b9a8370ca2
3 changed files with 7 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:latest FROM alpine:edge
RUN apk --no-cache add git curl RUN apk --no-cache add git curl
RUN sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply candrewlee14 RUN sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply candrewlee14
ENV SHELL /usr/bin/fish ENV SHELL /usr/bin/fish

Binary file not shown.

View File

@@ -1,7 +1,11 @@
if status is-interactive if status is-interactive
# Commands to run in interactive sessions can go here # Commands to run in interactive sessions can go here
zoxide init fish | source if type -q $zoxide
atuin init fish | source zoxide init fish | source
end
if type -q $atuin
atuin init fish | source
end
if test -f ~/.config/fish/config.fish.local if test -f ~/.config/fish/config.fish.local
source ~/.config/fish/config.fish.local source ~/.config/fish/config.fish.local