-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
41 lines (33 loc) · 1.11 KB
/
run.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
37
38
39
40
41
echo "WARNING - This will reset any existing nvim/alacritty setups. back them up before running this script."
read -p "Confirm: (y/n): " confirm
if [ "$confirm" != "y" ]; then
exit
fi
# Cleanup
rm -r ~/.config/nvim
rm -r ~/.config/alacritty
#Install
cp -r ./source_files/nvim ~/.config/
cp -r ./source_files/alacritty ~/.config/
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
cp ./source_files/fonts/* /usr/share/fonts/
elif [[ "$OSTYPE" == "darwin"* ]]; then
cp ./source_files/fonts/* ~/Library/Fonts/
else
echo "Could not detect OS, cannot install fonts"
exit
if [[ "$OSTYPE" != "darwin"* ]]; then
echo "Setup Complete!"
fi
read -p "Install Latex Support? (y/n) " latex_confirm
if [ "$latex_confirm" != "y"]; then
echo "Setup Complete!"
exit
fi
if [[ "$OSTYPE" == "darwin"* ]]; then
brew cask install basictex
brew install fswatch
echo "alias newtex='bash ~/instant-neovim-code-editor/source_files/scripts/create_new_latex_project.sh' >> ~/.zshrc"
echo "Installed Latex Dependencies and created new command 'newtex' to generate a project from a template."
fi
echo "Setup Complete!"