aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2015-02-28 19:03:28 +0100
committerDuncaen <mail@duncano.de>2015-02-28 19:03:28 +0100
commitfbf6f126f0bcfe0438699279bea69b3e6ae3b262 (patch)
tree09e3a43635f3e420405f0965599867802979e8b4
parent0edb0fe0fbb578dd043bf1c446f573657b786e7f (diff)
downloaddotfiles-fbf6f126f0bcfe0438699279bea69b3e6ae3b262.tar.gz
install.sh: simplify
-rwxr-xr-xinstall-vim17
-rwxr-xr-xinstall.sh19
2 files changed, 19 insertions, 17 deletions
diff --git a/install-vim b/install-vim
deleted file mode 100755
index 1186374..0000000
--- a/install-vim
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-cd $(dirname $BASH_SOURCE)
-BASE=$(pwd)
-VIM_RC=~/.vimrc
-VIM_DIR=~/.vim
-
-cp -v "$VIM_RC" "$VIM_RC".old
-rm -v "$VIM_RC"
-ln -sf $BASE/vimrc "$VIM_RC"
-
-cp -v -r "$VIM_DIR" "$VIM_DIR".old
-rm -v "$VIM_DIR"
-ln -sf $BASE/vim "$VIM_DIR"
-
-# install plugins
-vim +PlugInstall +qall
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..6ec5d02
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+user=duncan
+dotfiles=${PWD}
+
+rm -v /home/$user/.vimrc
+ln -sfv $dotfiles/vimrc /home/$user/.vimrc
+
+rm -v /home/$user/.vim
+ln -sfv $dotfiles/vim /home/$user/.vim
+
+rm -v /home/$user/.xinitrc
+ln -sfv $dotfiles/xinitrc /home/$user/.xinitrc
+
+rm -v /home/$user/.mkshrc
+ln -sfv $dotfiles/mkshrc /home/$user/.mkshrc
+
+# install plugins
+# vim +PlugInstall +qall