summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall18
1 files changed, 5 insertions, 13 deletions
diff --git a/install b/install
index e35190d..09e0a9c 100755
--- a/install
+++ b/install
@@ -6,21 +6,20 @@ cd $(dirname $BASH_SOURCE)
BASE=$(pwd)
# dotfiles to install
-for dotfile in bashrc vimrc gitconfig gitignore Rprofile tmux.conf reportbugrc; do
+for dotfile in gitconfig gitignore Rprofile reportbugrc; do
mkdir -pv bak
[ -e ~/.$dotfile ] && mv -v ~/.$dotfile bak/.$dotfile
ln -sfv $BASE/$dotfile ~/.$dotfile
done
# nvim config
-if [ ! -e ~/.config/nvim ]; then
- ln -sfv ~/.vim ~/.config/nvim
+if [ ! -e ~/.config ]; then
+ mkdir -pv ~/.config
fi
-if [ ! -e ~/.config/nvim/init.vim ]; then
- ln -sfv ~/.vimrc ~/.config/nvim/init.vim
+if [ ! -e ~/.config/nvim ]; then
+ ln -sfv $BASE/nvim ~/.config/nvim
fi
-
# git-prompt
if [ ! -e ~/.git-prompt.sh ]; then
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
@@ -31,10 +30,3 @@ mkdir -pv ~/bin
for bin in $BASE/bin/*; do
ln -svf $bin ~/bin
done
-
-# install vim-plug
-if [ ! -e ~/.vim/autoload/plug.vim ]; then
- echo Installing plug.vim from https://github.com/junegunn/vim-plug to ~/.vim/autoload/
- curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
- https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-fi

Contact - Imprint