VimsCode/install.sh

20 lines
554 B
Bash
Raw Normal View History

#!/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
echo "Installation terminé, lancer vim puis taper : et écrivez PluginInstall, sauvegardez et quittez."