Up.
This commit is contained in:
parent
de16b0a371
commit
20c6e3cd9d
@ -3,9 +3,12 @@
|
|||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
packages=(
|
packages=(
|
||||||
|
cargo
|
||||||
neovim
|
neovim
|
||||||
python-pynvim
|
|
||||||
npm
|
npm
|
||||||
|
python-pip
|
||||||
|
python-pynvim
|
||||||
|
ripgrep
|
||||||
)
|
)
|
||||||
|
|
||||||
echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
|
echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
|
||||||
@ -44,13 +47,21 @@ echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
## Install packages
|
## Install packages
|
||||||
{{- if ne .chezmoi.username "root" }}
|
packages=(${packages[@]//neovim/})
|
||||||
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing python3-pynvim npm
|
packages=(${packages[@]//cargo/})
|
||||||
{{- else }}
|
packages=(${packages[@]//python/python3})
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing python3-pynvim npm
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
mist install neovim
|
for package in ${packages[@]}; do
|
||||||
|
echo "installing ${package}..."
|
||||||
|
|
||||||
|
{{- if ne .chezmoi.username "root" }}
|
||||||
|
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
|
||||||
|
{{- else }}
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing $package
|
||||||
|
{{- end }}
|
||||||
|
done
|
||||||
|
|
||||||
|
mist install cargo neovim
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user