-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·64 lines (50 loc) · 1.65 KB
/
Copy pathinstall
File metadata and controls
executable file
·64 lines (50 loc) · 1.65 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
printf "\nWelcome to the install script.\n\n"
printf "${RED}This will install basic terminal setup requirements${NC}\n"
printf "${RED}- zsh\n- stow\n- neovim\n- lolcat\n- ripgrep\n- fd-find\n- antibody\n- starship${NC}\n\n"
printf "${RED}As well as some build dependencies for nvim${NC}\n"
printf "${RED}- curl\n- unzip\n- cmake\n- gettext\n- ninja-build\n- build-essential${NC}\n\n"
printf "${GREEN}Would you like to continue${NC}\n"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) exit ;;
esac
done
sudo /bin/bash <<EOF
apt install git stow zsh ripgrep lolcat fd-find ninja-build gettext cmake unzip curl build-essential -y
git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-$HOME}/.antidote
curl -sS https://starship.rs/install.sh | sh -s -- -y
EOF
printf "\n${GREEN}Installing NeoVim from source${NC}\n"
# Install NeoVim from source (latest stable)
git clone https://github.com/neovim/neovim $HOME/src/neovim
pushd $HOME/src/neovim
git checkout stable
make CMAKE_BUILD_TYPE=RelWithDebInfo
pushd build && cpack -G DEB && sudo dpkg -i nvim-linux64.deb
popd
popd
printf "\n${GREEN}Would you like to stow the basics now?${NC}\n"
printf "\n${GREEN}- zsh\n- nvim\n- starship${NC}\n\n"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) exit ;;
esac
done
cd $HOME/dot
stow zsh
stow nvim
stow starship
printf "\n${GREEN}Would you like to change your shell to zsh now?${NC}\n"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) exit ;;
esac
done
chsh -s $(which zsh)