install bash dependency for webinstall

This commit is contained in:
2022-03-31 14:43:29 -06:00
parent e16d5aba83
commit 099d85c6e9
2 changed files with 14 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
FROM alpine:latest
RUN apk update && apk add git curl
RUN sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply candrewlee14
RUN nvim --headless +'PlugInstall --sync' +qa
RUN nvim --headless -u ~/.config/nvim/coq_init.vim +'PlugInstall --sync' +qa
RUN nvim --headless -u ~/.config/nvim/cmp_init.vim +'PlugInstall --sync' +qa
# RUN nvim --headless +'PlugInstall --sync' +qa
# RUN nvim --headless -u ~/.config/nvim/coq_init.vim +'PlugInstall --sync' +qa
# RUN nvim --headless -u ~/.config/nvim/cmp_init.vim +'PlugInstall --sync' +qa
ENTRYPOINT ["/bin/zsh"]

View File

@@ -1,5 +1,14 @@
#!/usr/bin/env sh
echo "Running installation script\n"
echo "Installing bash\n"
{{- if eq .chezmoi.osRelease.id "alpine" }}
apk update
apk add bash
{{- else if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu")) }}
sudo apt update
sudo apt bash -y
{{- end }}
echo "Running installations\n"
curl -sS https://webinstall.dev/webi | bash
webi bat curlie delta jq rg fd gh
{{- if eq .chezmoi.os "linux" }}
@@ -7,10 +16,10 @@ webi fish
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
{{- if eq .chezmoi.osRelease.id "alpine" }}
apk update
apk add zsh tmux perl
apk add zsh tmux perl bash
{{- else if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu")) }}
sudo apt update
sudo apt install zsh tmux perl -y
sudo apt install zsh tmux perl bash -y
{{- end }}
{{- else if eq .chezmoi.os "darwin" }}
brew install neovim zsh tmux perl