From 1a62041e23bab00d450889eb3b06da2c937074c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Tue, 27 Nov 2018 12:09:16 +0100 Subject: [PATCH] Add install scripts --- Makefile | 2 ++ scripts/install | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Makefile create mode 100644 scripts/install diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..02ba31c --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +install: + bash scripts/install diff --git a/scripts/install b/scripts/install new file mode 100644 index 0000000..7ed09b7 --- /dev/null +++ b/scripts/install @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f "${HOME}/.vimrc" ]; then + #mv ${HOME}/.vimrc $HOME .vimrc.old + echo "There was already a .vimrc file, renamed to .vimrc.old" +fi +if [ -d "${HOME}/.vim" ]; then + #mv ${HOME}/.vim ${HOME} .vim.old + echo "There was already a .vim folder, renamed to .vim.old" +fi + +#cp vim $HOME/.vim +#cp vimrc $HOME/.vimrc + +