summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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