VimsCode/install.sh

22 lines
515 B
Bash
Executable file

#!/bin/bash
sudo apt update
sudo apt install elinks git figlet
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
echo "Utilisez-vous bash ou zsh ?"
read -r term
if [ "$term" = "bash" ]; then
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.bashrc
else
echo 'alias vimscode="~/.vim/vimscode.sh"' >> ~/.zshrc
fi
vim -c PluginInstall &
echo "Installation terminé, lancer vim."