dotfiles/setup.sh

21 lines
632 B
Bash
Raw Normal View History

2017-11-03 07:09:33 +00:00
#!/bin/bash
2019-02-14 18:45:24 +00:00
LINK_FILES=(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
2019-02-14 18:45:24 +00:00
mkdir -p ~/.vim/bundle 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"
2019-02-14 18:45:24 +00:00
grep -q "source $(pwd)/bashrc" ~/.bashrc || echo "source $(pwd)/bashrc" >> ~/.bashrc