From 0f5871e30e2d2758cbfc2e23112375adfca37596 Mon Sep 17 00:00:00 2001 From: bastien Date: Fri, 24 Nov 2023 17:20:02 +0100 Subject: [PATCH] ajout de script pour l'install et l'update --- README.md | 13 ++++++------- install.sh | 6 ++++++ update-vimscode | 10 ++++++++++ 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 install.sh create mode 100644 update-vimscode diff --git a/README.md b/README.md index 530bb25..eef0560 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..95f9abc --- /dev/null +++ b/install.sh @@ -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"" diff --git a/update-vimscode b/update-vimscode new file mode 100644 index 0000000..8ebcf1c --- /dev/null +++ b/update-vimscode @@ -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" +