gracefully fallback if atuin or zoxide aren't installed
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM alpine:latest
|
||||
FROM alpine:edge
|
||||
RUN apk --no-cache add git curl
|
||||
RUN sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply candrewlee14
|
||||
ENV SHELL /usr/bin/fish
|
||||
|
||||
BIN
bin/chezmoi
BIN
bin/chezmoi
Binary file not shown.
@@ -1,7 +1,11 @@
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
if type -q $zoxide
|
||||
zoxide init fish | source
|
||||
end
|
||||
if type -q $atuin
|
||||
atuin init fish | source
|
||||
end
|
||||
|
||||
if test -f ~/.config/fish/config.fish.local
|
||||
source ~/.config/fish/config.fish.local
|
||||
|
||||
Reference in New Issue
Block a user