installation parfaite
This commit is contained in:
parent
04e2ecb5c8
commit
d0c3863d18
16
install.sh
16
install.sh
|
@ -1,15 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo ' (0%)\r'
|
echo -e "INSTALLATION DE VIMSCODE\r"
|
||||||
|
echo -e 'Installation en cours : [ ](0%)\r'
|
||||||
sudo apt update > /dev/null 2>&1
|
sudo apt update > /dev/null 2>&1
|
||||||
sudo apt install elinks figlet -y > /dev/null 2>&1
|
sudo apt install elinks figlet -y > /dev/null 2>&1
|
||||||
echo '##### (25%)\r'
|
echo -e 'Installation en cours : [##### ](25%)\r'
|
||||||
|
|
||||||
mkdir ~/.vim
|
mkdir ~/.vim
|
||||||
mv * ~/.vim && cd ../ && rm -rf Vimscode
|
mv * ~/.vim && cd ../ && rm -rf Vimscode
|
||||||
cd ~/.vim && mv vimrc-conf ~/.vimrc && mv vimrc2-conf ~/.vimrc2
|
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
|
cd ~/.vim/bundle/ && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim > /dev/null 2>&1
|
||||||
echo '########## (50%)\r'
|
echo -e 'Installation en cours : [########## ](50%)\r'
|
||||||
|
|
||||||
echo "Utilisez-vous bash ou zsh ?"
|
echo "Utilisez-vous bash ou zsh ?"
|
||||||
read -r term
|
read -r term
|
||||||
|
@ -19,13 +20,10 @@ if [ "$term" = "bash" ]; then
|
||||||
else
|
else
|
||||||
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.zshrc
|
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.zshrc
|
||||||
fi
|
fi
|
||||||
echo '############### (75%)\r'
|
echo -e 'Configuration en cours : [############### ](75%)\r'
|
||||||
|
|
||||||
vim -u ~/.vimrc2 -c PluginInstall &
|
vim -u ~/.vimrc2 -c PluginInstall -c q -c q > /dev/null 2>&1
|
||||||
PID=$!
|
|
||||||
sleep 10
|
|
||||||
kill -9 $PID
|
|
||||||
rm -rf ~/.vimrc2
|
rm -rf ~/.vimrc2
|
||||||
echo '####################(100%)\r'
|
echo -e 'Configuration en cours : [####################](100%)\r'
|
||||||
|
|
||||||
echo "Installation terminée."
|
echo "Installation terminée."
|
Loading…
Reference in a new issue