Repository navigation
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·74 lines (47 loc) · 2 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·74 lines (47 loc) · 2 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
65
66
67
68
69
70
71
72
73
74
cd ~/.vim
#composer is required
apt-get install curl php5-cli git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
##first we need to install curl to download vim-plug
sudo apt-get install curl
#VIM-PLUG
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
#Now, open vim and run :PlugInstall
printf "\nNow vim will be automatically launched, execute the command :PlugInstall in vim so all the pluggins start to install.\n\nOnce you exit :q, the rest of this installation will continue.\n\nPress any key..."
read -rsn1
vim
printf "\n\n...finishing...\n\n"
#XCLIP so you can copy paste with ctrl+c ctrl+v
sudo apt-get install xclip
cd ~/
#install patched font for terminal (copying to ~/.local/share/fonts closing all terminal windows and editing settings)
wget https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/SourceCodePro/Medium/complete/Sauce%20Code%20Pro%20Medium%20Nerd%20Font%20Complete%20Mono.ttf ~
Linux :
mkdir -p ~/.local/share/fonts
mv ~/Sauce*ttf ~/.local/share/fonts/
iOS :
mv ~/Sauce*ttf /Library/Fonts
#If doesn't recognize colors at first:
ln -s ~/.vim/plugged/vim-colorschemes/colors ~/.vim/colors
#ending
#Install NEOVIM
printf "\nInstalling neovim, Ctrl-C if don't..."
read -rsn1
printf "\nInstalling python3 (needed for neovim), Ctrl-C if don't..."
read -rsn1
sudo apt-get install python3
curl -LO https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
mkdir -p ~/.config/nvim
touch ~/.config/nvim/vimrc
cat "source ~/.vim/vimrc-php/vimrc" >> ~/.config/nvim/vimrc
printf "\nFinished :-) Now you need to open a new terminal.\n\nOh, and remember to set the Source Code Pro font from the terminal settings.\n\nPress any key..."
# install code intellisense for php globally
npm i intelephense -g
read -rsn1
#Install RipGrep
sudo apt-get install ripgrep
#Install RipGrep
sudo apt-get install bag