Facilitation de l'install
This commit is contained in:
parent
8b1b59082f
commit
f47a6442ec
22
install.sh
22
install.sh
|
@ -1,12 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo apt update
|
echo -ne ' (0%)\r'
|
||||||
sudo apt install elinks git figlet
|
sudo apt update > /dev/null 2>&1
|
||||||
|
sudo apt install elinks figlet -y > /dev/null 2>&1
|
||||||
|
echo -ne '##### (25%)\r'
|
||||||
|
|
||||||
mkdir ~/.vim
|
mkdir ~/.vim
|
||||||
mv * ~/.vim && rm -rf Vimscode
|
mv * ~/.vim && rm -r ../Vimscode
|
||||||
cd ~/.vim && mv vimrc-conf ~/.vimrc
|
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
|
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 ?"
|
echo "Utilisez-vous bash ou zsh ?"
|
||||||
read -r term
|
read -r term
|
||||||
|
@ -16,7 +19,12 @@ if [ "$term" = "bash" ]; then
|
||||||
else
|
else
|
||||||
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.zshrc
|
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.zshrc
|
||||||
fi
|
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."
|
Loading…
Reference in a new issue