Correction install

This commit is contained in:
bastien 2024-08-14 13:35:23 +02:00
parent f47a6442ec
commit 04e2ecb5c8

View file

@ -1,15 +1,15 @@
#!/bin/bash
echo -ne ' (0%)\r'
echo ' (0%)\r'
sudo apt update > /dev/null 2>&1
sudo apt install elinks figlet -y > /dev/null 2>&1
echo -ne '##### (25%)\r'
echo '##### (25%)\r'
mkdir ~/.vim
mv * ~/.vim && rm -r ../Vimscode
mv * ~/.vim && cd ../ && rm -rf 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 '########## (50%)\r'
echo "Utilisez-vous bash ou zsh ?"
read -r term
@ -19,12 +19,13 @@ if [ "$term" = "bash" ]; then
else
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.zshrc
fi
echo -ne '############### (75%)\r'
echo '############### (75%)\r'
vim -u ~/.vimrc2 -c PluginInstall &
PID=$!
sleep 10
kill -9 $PID
rm -rf ~/.vimrc2
echo -ne '####################(100%)\r'
echo '####################(100%)\r'
echo "Installation terminée."