dotfiles/setup.sh
2017-11-03 08:24:23 +01:00

18 lines
511 B
Bash
Executable file

#!/bin/bash
LINK_FILES=(bashrc vimrc tmux.conf gitconfig)
mkdir ~/.home-git-back 2>/dev/null
for file in ${LINK_FILES[@]}; do
if [ ! -L ~/.${file} ] ; then
mv -v ~/.${file} ~/.home-git-back
ln -s $(pwd)/${file} ~/.${file}
fi
done
[ ! -d ~/.bash-git-prompt ] && git clone https://github.com/nold360/bash-git-prompt.git ~/.bash-git-prompt
mkdir ~/.vim 2>/dev/null
[ ! -d ~/.vim/bundle ] && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle
vim -c ":PluginInstall" -c ":q" -c ":q"