14 lines
339 B
Bash
14 lines
339 B
Bash
|
#!/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
|