-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.sh
executable file
·73 lines (57 loc) · 2.7 KB
/
packages.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
echo 'updating, upgrading...'
sudo apt-get update -y && sudo apt-get upgrade -y
echo 'installing essential tools'
sudo apt install -y build-essential cmake git-all python python-dev python3 python3-dev python3-pip apache2 postgresql
# build prerequisites for homebrew
sudo apt-get install -y git curl file procps
# build prerequisites for neovim
sudo apt-get install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip curl doxygen
echo 'installing apache'
sudo apt install -y apache2
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod rewrite
sudo service apache2 start
echo 'installing useful tools'
sudo apt install -y unzip keychain
echo 'installing nvm'
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# load nvm immediately
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
echo 'installing node'
nvm install node
echo 'installing global npm packages: prettier, gulp-cli'
sudo npm install -g prettier @fsouza/prettierd gulp-cli
# important language server that might not get auto-installted by mason
sudo npm i -g vscode-langservers-extracted
echo 'installing neovim'
sudo ./install_scripts/install_neovim.sh
#echo 'installing vim-plug'
#curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
#echo 'installing vim-plug plugins'
#nvim -E -c PlugInstall -c q
#echo 'installing coc extensions'
#nvim -E -c "CocInstall coc-rome coc-sh coc-yaml coc-svg coc-html coc-css coc-prettier" -c q
# see https://github.com/neoclide/coc-snippets/issues/196#issuecomment-781231190
echo 'fixing python issues with coc and nvim'
python3 -m pip install --user --upgrade pynvim
echo 'installing ripgrep'
sudo apt-get install -y ripgrep
echo 'installing lazygit'
sudo ./install_scripts/install_lazygit.sh
## watchman, makes coc-volar faster (TODO update url occasionally)
#echo 'installing watchman'
#cd -p /tmp/ && wget https://github.com/facebook/watchman/releases/download/v2022.06.13.00/watchman-v2022.06.13.00-linux.zip
#unzip watchman-v2022.06.13.00-linux.zip && cd watchman-v2022.06.13.00-linux
#sudo mkdir -p /usr/local/{bin,lib} /usr/local/var/run/watchman
#sudo cp bin/* /usr/local/bin
#sudo cp lib/* /usr/local/lib
#sudo chmod 755 /usr/local/bin/watchman
#sudo chmod 2777 /usr/local/var/run/watchman
echo 'git configs'
#sudo git config --global user.email "[email protected]"
sudo git config --global user.email "[email protected]"
sudo git config --global user.name "Lukas Tillmann" && sudo git config --global core.editor "vim"