Facilitation de l'install

This commit is contained in:
bastien 2024-08-14 13:27:52 +02:00
parent 8b1b59082f
commit f47a6442ec

View file

@ -1,12 +1,15 @@
#!/bin/bash
sudo apt update
sudo apt install elinks git figlet
echo -ne ' (0%)\r'
sudo apt update > /dev/null 2>&1
sudo apt install elinks figlet -y > /dev/null 2>&1
echo -ne '##### (25%)\r'
mkdir ~/.vim
mv * ~/.vim && rm -rf Vimscode
cd ~/.vim && mv vimrc-conf ~/.vimrc
cd ~/.vim/bundle/ && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
mv * ~/.vim && rm -r ../Vimscode
cd ~/.vim && mv vimrc-conf ~/.vimrc && mv vimrc2-conf ~/.vimrc2
cd ~/.vim/bundle/ && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim > /dev/null 2>&1
echo -ne '########## (50%)\r'
echo "Utilisez-vous bash ou zsh ?"
read -r term
@ -16,7 +19,12 @@ if [ "$term" = "bash" ]; then
else
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.zshrc
fi
echo -ne '############### (75%)\r'
vim -c PluginInstall &
vim -u ~/.vimrc2 -c PluginInstall &
PID=$!
kill -9 $PID
rm -rf ~/.vimrc2
echo -ne '####################(100%)\r'
echo "Installation terminé, lancer vim."
echo "Installation terminée."