ajout de script pour l'install et l'update

This commit is contained in:
bastien 2023-11-24 17:20:02 +01:00
parent dd8f8cf656
commit 0f5871e30e
3 changed files with 22 additions and 7 deletions

View file

@ -60,10 +60,9 @@ sudo apt install git elinks
After clone don't forgot to rename "vimrc-conf" -> ".vimrc" :
```
git clone https://git.cohabit.fr/bastien/VimsCode.git
mv ../Vimscode ~/.vim && cd ~/.vim
mv vimrc-conf ~/.vimrc
cd ~/.vim/bundle/ && git clone https://github.com/VundleVim/Vundle.vim.git
cd Vimscode
chmod +x install.sh
./install.sh
```
### Alias :
@ -130,9 +129,9 @@ And other theme : [Theme](https://github.com/flazz/vim-colorschemes/tree/master/
For update it's very simple you juste have to pull and do some mv:
```
git pull https://git.cohabit.fr/bastien/VimsCode.git
mv ../vimscode ~/.vim && cd ~/.vim
mv vimrc-conf ../.vimrc
cd ~/.vim
chmod +x update-vimscode
./update-vimscode
```
## Troubleshooting

6
install.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
mv * ~/.vim && rm -rf Vimscode
cd ~/.vim && mv vimrc-conf ~/.vimrc
cd ~/.vim/bundle/ && git clone https://github.com/VundleVim/Vundle.vim.git
echo "installation terminé, lancer vim puis ":PluginInstall""

10
update-vimscode Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
rm -rf ~/.vim/help ~/.vim/ide-cli ~/.vim/vimscode.sh
rm -rf ~/.vimrc
git clone https://git.cohabit.fr/bastien/VimsCode.git
cd Vimscode
mv help ide-cli vimscode.sh
mv vimrc-conf ~/.vimrc
echo "mise à jour terminé, lancer vim"