dotfiles/setup.sh

19 lines
521 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
[ ! -d ~/.vim/bundle ] && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle
2017-11-03 07:09:33 +00:00
vim -c ":PluginInstall" -c ":q" -c ":q"