From e892f736a3cac880b36540a0223d488ee3879846 Mon Sep 17 00:00:00 2001 From: Oxbian Date: Sat, 2 Dec 2023 22:07:55 +0100 Subject: ADD: warning message, install.sh to POSIX shell --- README.md | 7 +++---- install.sh | 12 ++++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ba83d11..30565df 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,9 @@ You will need `vim` and `git` to be able to use this configuration. Normally if you run the `install.sh` script it will work, but if you have a problem, try to install vim plug and check if your problem is solved. -```bash +**Be careful the install.sh script remove everything in `.config/vim` and in `$HOME/.vim` !** + +```sh curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ``` @@ -35,9 +37,6 @@ This config has just the necessary plugins installed: - [CoC](https://github.com/neoclide/coc.nvim) a LSP plugin that work like VsCode LSP, and in Node (yeah I don't like it too but no choice...). - [Vim Wakatime](https://github.com/wakatime/vim-wakatime) to have wakatime time tracking in vim. -### Languages utilities - - ## Command & keybinds diff --git a/install.sh b/install.sh index 46b1776..c52c3b9 100755 --- a/install.sh +++ b/install.sh @@ -1,8 +1,8 @@ -#!/bin/bash +#!/bin/sh DIR=$(dirname "$0") -cd $DIR +cd "$DIR" || exit -ln -sf $(pwd)/.vimrc $HOME/.vimrc -rm -rf $HOME/.vim -rm -rf $HOME/.config/vim -ln -sf $(pwd)/vim $HOME/.config/vim +ln -sf "$(pwd)/.vimrc" "$HOME/.vimrc" +rm -rf "$HOME/.vim" +rm -rf "$HOME/.config/vim" +ln -sf "$(pwd)/vim" "$HOME/.config/vim" -- cgit v1.2.3