summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2022-03-21 09:10:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2022-03-21 09:10:41 +0100
commited27977fc818a76b17f70acad5f5badb5c67c14b (patch)
tree05fda7dccd17ac02c8d39eca6a61c0921f7b9dc2 /install
parent0abab86a42b23cec9028b1a143746f60ec7a7db9 (diff)
downloadvim-ed27977fc818a76b17f70acad5f5badb5c67c14b.zip
vim-ed27977fc818a76b17f70acad5f5badb5c67c14b.tar.gz
install : no unison involved, bypass ~/etc
Diffstat (limited to 'install')
-rwxr-xr-xinstall7
1 files changed, 3 insertions, 4 deletions
diff --git a/install b/install
index 06cd1f9..f6b1f06 100755
--- a/install
+++ b/install
@@ -1,6 +1,5 @@
#! /bin/bash
-[ -d ~/etc/nvim ] && rm -fr ~/etc/nvim
-mkdir ~/etc/nvim && cd ~/etc/nvim && ln -s ~/usr/git/vim/init.lua && ln -s ~/usr/git/vim/lua
-[ -d ~/.config/nvim ] && rm -fr ~/.config/nvim
-cd ~/.config && ln -s ~/etc/nvim nvim
+D=~/.config/nvim
+rm -fr "$D" 2>/dev/null
+mkdir "$D" && cd "$D" && ln -s ~/usr/git/vim/init.lua && ln -s ~/usr/git/vim/lua