dotfiles/install.sh

29 lines
761 B
Bash
Raw Normal View History

2019-03-25 09:28:39 +00:00
#!/bin/bash
2019-03-25 12:58:16 +00:00
BASE=$HOME/.dotfiles
2019-03-25 13:04:20 +00:00
if [ ! -d "$BASE" ]; then
2019-05-13 17:44:04 +00:00
git clone git@github.com:sundowndev/dotfiles.git $BASE
2019-03-25 13:07:25 +00:00
else
echo "dotfiles already installed"
2019-03-25 13:04:20 +00:00
fi
2019-03-25 09:28:39 +00:00
# links
ln -fs ${BASE}/bashrc ${HOME}/.bashrc
ln -fs ${BASE}/bash_profile ${HOME}/.bash_profile
ln -fs ${BASE}/bash_aliases ${HOME}/.bash_aliases
2019-03-25 12:58:16 +00:00
ln -fs ${BASE}/zshrc ${HOME}/.zshrc
ln -fs ${BASE}/gitignore ${HOME}/.gitignore
2019-05-13 18:25:35 +00:00
ln -fs ${BASE}/hyper.js ${HOME}/.hyper.js
2019-03-25 09:28:39 +00:00
2019-03-25 12:58:16 +00:00
git config --global user.email "raphael@crvx.fr"
git config --global user.name "sundowndev"
2019-03-25 09:28:39 +00:00
# vim
2019-03-25 12:58:16 +00:00
#mkdir -p ~/.vim/autoload
#curl --insecure -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim
#mv -v ~/.vimrc ~/.vimrc.old 2> /dev/null
#ln -sf $BASE/vimrc ~/.vimrc
2019-03-25 09:28:39 +00:00
2019-03-25 12:58:16 +00:00
#vim +PlugInstall +qall