aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxbian <got.dacs@slmail.me>2023-12-02 22:07:55 +0100
committerOxbian <got.dacs@slmail.me>2023-12-02 22:07:55 +0100
commite892f736a3cac880b36540a0223d488ee3879846 (patch)
tree5558f0a709c4738ac7ac773b4c45c1e6aec30996
parent6c5f19bf6524fc38c4288858f9f03c0fbc325556 (diff)
downloadvimrc-e892f736a3cac880b36540a0223d488ee3879846.tar.gz
vimrc-e892f736a3cac880b36540a0223d488ee3879846.zip
ADD: warning message, install.sh to POSIX shell
-rw-r--r--README.md7
-rwxr-xr-xinstall.sh12
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"
ArKa projects. All rights to me, and your next child right arm.