From dcdea6b58013b2e62d676af25535d203142be707 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Mon, 6 Feb 2023 21:44:22 +0100 Subject: [PATCH] Add install script --- install.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..c502a56 --- /dev/null +++ b/install.sh @@ -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 \ No newline at end of file