dotfiles/install.sh

15 lines
370 B
Bash
Raw Normal View History

2023-02-06 20:44:22 +00:00
#!/usr/bin/zsh
if [ $# -eq 0 ]
then
echo "Git branch name missing"
2023-02-06 20:55:31 +00:00
exit 1;
2023-02-06 20:44:22 +00:00
fi
echo ".dotfiles" >> $HOME/.gitignore
2023-02-08 20:40:05 +00:00
git clone --bare https://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 &&
2023-02-06 20:44:22 +00:00
source .zshrc