From b5c62fabe5d1f1bb28cb5797680c0532c7067c12 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 17 Nov 2021 17:21:14 -0700 Subject: [PATCH] add automatic plug install and perl to install script --- Dockerfile | 1 + run_once_install.sh.tmpl | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab6a0f4..3962df1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ 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 ENTRYPOINT ["/bin/zsh"] diff --git a/run_once_install.sh.tmpl b/run_once_install.sh.tmpl index cf3db63..251bed6 100644 --- a/run_once_install.sh.tmpl +++ b/run_once_install.sh.tmpl @@ -3,11 +3,11 @@ echo "Running installation script\n" {{- if eq .chezmoi.os "linux" }} {{- if eq .chezmoi.osRelease.id "alpine" }} apk update -apk add zsh neovim tmux bat +apk add zsh neovim tmux bat perl {{- else if eq .chezmoi.osRelease.id "debian" }} sudo apt update -sudo apt install zsh neovim tmux -y +sudo apt install zsh neovim tmux perl -y {{- end }} {{- else if eq .chezmoi.os "darwin" }} -brew install zsh neovim tmux +brew install zsh neovim tmux perl {{- end }}