summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-05-18 14:56:52 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-05-18 14:56:52 +0100
commitdf70124f64ecdb2bcfac3fbc132fb14f1501773d (patch)
treed99557af2d5045d227ea5d85c4b87a0665846ce0 /install.sh
parentb83cf688b4ad84fe7f500e18ca847e1423e5f806 (diff)
added support for neovim
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh24
1 files changed, 15 insertions, 9 deletions
diff --git a/install.sh b/install.sh
index a84cd04..8b52707 100755
--- a/install.sh
+++ b/install.sh
@@ -3,6 +3,7 @@
dir=~/dotfiles
olddir=~/dotfiles_old
+home=/home/urbain
rm -rf $olddir
mkdir -p $olddir
@@ -10,7 +11,7 @@ mkdir -p $olddir
echo -e "\n*** Symlinking files *** \n"
if [ $# -eq 0 ]; then
- listFiles=`ls --ignore="make" --ignore="tex"`
+ listFiles=`ls --ignore="make" --ignore="tex" --ignore="README.md"`
else
listFiles=$@
fi
@@ -31,18 +32,19 @@ if [ $# -ne 0 ]; then
fi
# Symlink for neovim
-rm ~/.nvim ~/.nvimrc
-ln -s $dir/vim ~/.nvim
-ln -s $dir/vimrc ~/.nvimrc
+# rm ~/.nvim ~/.nvimrc
+# ln -s $dir/vim ~/.nvim
+# ln -s $dir/vimrc ~/.nvimrc
echo -e "\n*** Updating/Creating git repositories *** \n"
declare -A repos
-repos[altercation]=/home/urbain/.solarized/mutt-colors-solarized
-repos[Anthony25]=/home/urbain/.solarized/gnome-terminal-colors-solarized
-repos[seebi]=/home/urbain/.solarized/dircolors-solarized
-repos[gmarik]=/home/urbain/.vim/bundle/vundle
-repos[tmux-plugins]=/home/urbain/.tmux/plugins/tpm
+repos[junegunn]=$home/.nvim/vim-plug
+repos[altercation]=$home/.solarized/mutt-colors-solarized
+repos[Anthony25]=$home/.solarized/gnome-terminal-colors-solarized
+repos[seebi]=$home/.solarized/dircolors-solarized
+repos[gmarik]=$home/.vim/bundle/vundle
+repos[tmux-plugins]=$home/.tmux/plugins/tpm
for author in "${!repos[@]}"; do
thisDir=${repos[$author]}
@@ -58,4 +60,8 @@ for author in "${!repos[@]}"; do
fi
done
+cd $dir/nvim
+mkdir -p autoload
+ln -s $dir/nvim/vim-plug/plug.vim $dir/nvim/autoload/plug.vim
+
echo -e "\n*** Installation successful *** \n"