-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathentrypoint.sh
executable file
·36 lines (36 loc) · 1.47 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Installing ohmyzsh
if ! [ -f "/root/.zshrc" ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
fi
# Installing Distro if set.
if [ -n "$NVIM_DISTRO" ]; then
NVIM_DISTRO="${NVIM_DISTRO,,}"
if [ ! -d "/root/.config/nvim" ] && [ ! -d "/root/.config/lvim" ]; then
if [ "$NVIM_DISTRO" == "lazyvim" ]; then
git clone https://github.com./LazyVim/starter /root/.config/nvim
rm -rf /root/.config/nvim/.git
elif [ "$NVIM_DISTRO" == "astronvim" ]; then
git clone --depth 1 https://github.com./AstroNvim/template /root/.config/nvim
rm -rf /root/.config/nvim/.git
elif [ "$NVIM_DISTRO" == "nvchad" ]; then
git clone https://github.com./NvChad/starter /root/.config/nvim
rm -rf /root/.config/nvim/.git
elif [ "$NVIM_DISTRO" == "lunarvim" ]; then
bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)
elif [ "$NVIM_DISTRO" == "spacevim" ]; then
# Throws font errors, do we really need?
curl -sLf https://spacevim.org/install.sh | bash
elif [ "$NVIM_DISTRO" == "kickstart" ]; then
git clone https://github.com./nvim-lua/kickstart.nvim.git /root/.config/nvim
rm -rf /root/.config/nvim/.git
elif [ "$NVIM_DISTRO" == "normalnvim" ]; then
git clone https://github.com./NormalNvim/NormalNvim.git /root/.config/nvim
fi
fi
fi
if [ "$NVIM_DISTRO" == "lunarvim" ]; then
lvim
else
nvim
fi