Add install script

This commit is contained in:
LordMathis 2023-02-06 21:44:22 +01:00
parent a1200a3534
commit dcdea6b580
1 changed files with 14 additions and 0 deletions

14
install.sh Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/zsh
if [ $# -eq 0 ]
then
echo "Git branch name missing"
fi
echo ".dotfiles" >> $HOME/.gitignore
git clone --bare git@git.namesny.com:Mathis/dotfiles.git $HOME/.dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config checkout $1
config submodule init
config submodule update
source .zshrc