dotfiles/setup.sh

19 lines
543 B
Bash
Raw Normal View History

2017-11-03 07:09:33 +00:00
#!/bin/bash
2017-11-03 07:39:18 +00:00
LINK_FILES=(bashrc vimrc tmux.conf gitconfig dircolors)
2017-11-03 07:24:23 +00:00
mkdir ~/.home-git-back 2>/dev/null
2017-11-03 07:09:33 +00:00
for file in ${LINK_FILES[@]}; do
2017-11-03 07:24:23 +00:00
if [ ! -L ~/.${file} ] ; then
mv -v ~/.${file} ~/.home-git-back
ln -s $(pwd)/${file} ~/.${file}
fi
2017-11-03 07:09:33 +00:00
done
2017-11-03 07:24:23 +00:00
[ ! -d ~/.bash-git-prompt ] && git clone https://github.com/nold360/bash-git-prompt.git ~/.bash-git-prompt
mkdir ~/.vim 2>/dev/null
2018-01-09 06:03:40 +00:00
[ ! -d ~/.vim/bundle/Vundle.vim ] && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
2017-11-03 07:09:33 +00:00
vim -c ":PluginInstall" -c ":q" -c ":q"