dotfiles/bootstrap.sh

21 lines
627 B
Bash
Raw Normal View History

2016-04-08 01:39:33 +01:00
#!/usr/bin/env zsh
# Current dir
BASEDIR=$(pwd)
# ln the various files
test -L $HOME/.curlrc || ln -f -s $BASEDIR/curlrc $HOME/.curlrc
2016-04-08 03:42:12 +01:00
test -L $HOME/.gitignore || ln -f -s $BASEDIR/gitignore $HOME/.gitignore
2016-04-08 03:37:25 +01:00
test -L $HOME/.hushlogin || ln -f -s $BASEDIR/hushlogin $HOME/.hushlogin
2016-04-08 01:39:33 +01:00
test -L $HOME/.zshrc || ln -f -s $BASEDIR/zshrc $HOME/.zshrc
2016-05-13 08:23:58 +01:00
# ln vim files
test -L $HOME/.vim || ln -f -s $BASEDIR/vim $HOME/.vim
test -L $HOME/.vimrc || ln -f -s $HOME/.vim/vimrc $HOME/.vimrc
2016-04-08 01:39:33 +01:00
# .gitconfig gets edited by .extra so we wont symlink it, but copy it
cp $BASEDIR/gitconfig $HOME/.gitconfig
# Source zshrc
source $HOME/.zshrc