mirror of
https://github.com/danbee/mac-setup
synced 2025-03-04 08:39:10 +00:00
30 lines
488 B
Bash
Executable File
30 lines
488 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd "$HOME"
|
|
|
|
if [ $SHELL != $(which zsh) ]; then
|
|
chsh -s $(which zsh)
|
|
fi
|
|
|
|
if [ ! -d "$HOME/dotfiles" ]; then
|
|
git clone git@github.com:thoughtbot/dotfiles.git
|
|
else
|
|
pushd "$HOME/dotfiles"
|
|
git pull
|
|
popd
|
|
fi
|
|
|
|
if [ ! -d "$HOME/dotfiles-local" ]; then
|
|
git clone git@github.com:danbee/dotfiles-local.git
|
|
pushd "$HOME/dotfiles"
|
|
git submodule init
|
|
git submodule update
|
|
popd
|
|
else
|
|
pushd "$HOME/dotfiles-local"
|
|
git pull
|
|
popd
|
|
fi
|
|
|
|
env RCRC="$HOME/dotfiles/rcrc" rcup
|