2016-04-08 01:39:33 +01:00
|
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
|
|
# Current dir
|
|
|
|
|
BASEDIR=$(pwd)
|
|
|
|
|
|
2016-05-13 12:34:48 +01:00
|
|
|
|
# Update git submodules
|
2016-07-13 13:38:11 +01:00
|
|
|
|
echo "Updating git submodules"
|
2016-05-13 12:34:48 +01:00
|
|
|
|
git submodule init && git submodule update
|
|
|
|
|
|
2016-04-08 01:39:33 +01:00
|
|
|
|
# ln the various files
|
2016-07-13 13:38:11 +01:00
|
|
|
|
echo "Sym-linking the various config files"
|
2016-04-08 01:39:33 +01:00
|
|
|
|
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-05-19 12:11:14 +01:00
|
|
|
|
test -d $HOME/.ncmpcpp || mkdir $HOME/.ncmpcpp
|
2016-05-16 09:40:18 +01:00
|
|
|
|
test -L $HOME/.ncmpcpp/config || ln -f -s $BASEDIR/ncmpcpp $HOME/.ncmpcpp/config
|
2017-12-10 12:01:30 +00:00
|
|
|
|
test -L $HOME/.tmux.conf || ln -f -s $BASEDIR/tmux $HOME/.tmux.conf
|
2017-09-11 14:23:28 +01:00
|
|
|
|
test -L $HOME/.functions.zsh || ln -f -s $BASEDIR/functions.zsh $HOME/.functions.zsh
|
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
|
2016-07-13 13:38:11 +01:00
|
|
|
|
echo "Setting up vim"
|
2016-05-13 12:34:48 +01:00
|
|
|
|
test -d $HOME/.vim && rm -rf $HOME/.vim
|
|
|
|
|
ln -s $BASEDIR/vim $HOME/.vim
|
2016-05-13 08:23:58 +01:00
|
|
|
|
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 won’t symlink it, but copy it
|
2016-07-13 13:38:11 +01:00
|
|
|
|
echo "For compatability we chall copy the global gitconfig"
|
2016-04-08 01:39:33 +01:00
|
|
|
|
cp $BASEDIR/gitconfig $HOME/.gitconfig
|
|
|
|
|
|
|
|
|
|
# Source zshrc
|
2016-07-13 13:38:11 +01:00
|
|
|
|
echo "And finally, source the .zshrc"
|
2016-04-08 01:39:33 +01:00
|
|
|
|
source $HOME/.zshrc
|