2023-11-24 17:20:02 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-05-19 12:13:13 +02:00
|
|
|
sudo apt update
|
|
|
|
sudo apt install elinks git figlet
|
|
|
|
|
2024-08-06 10:33:57 +02:00
|
|
|
mkdir ~/.vim
|
2023-11-24 17:20:02 +01:00
|
|
|
mv * ~/.vim && rm -rf Vimscode
|
|
|
|
cd ~/.vim && mv vimrc-conf ~/.vimrc
|
2024-05-19 12:13:13 +02:00
|
|
|
cd ~/.vim/bundle/ && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
|
|
|
|
|
|
|
echo "Utilisez-vous bash ou zsh ?"
|
2024-08-06 10:33:57 +02:00
|
|
|
read -r term
|
2024-05-19 12:13:13 +02:00
|
|
|
|
|
|
|
if [ "$term" = "bash" ]; then
|
2024-08-06 10:33:57 +02:00
|
|
|
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.bashrc
|
2024-05-19 12:13:13 +02:00
|
|
|
else
|
2024-08-06 10:33:57 +02:00
|
|
|
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.zshrc
|
2024-05-19 12:13:13 +02:00
|
|
|
fi
|
|
|
|
|
2024-08-06 10:33:57 +02:00
|
|
|
echo "Installation terminé, lancer vim puis taper : et écrivez PluginInstall, sauvegardez et quittez."
|