1
0
mirror of https://github.com/danbee/mac-setup synced 2025-03-04 08:39:10 +00:00
mac-setup/lib/dotfiles.sh
Daniel Barber a67e85a036
Use process substitution to run the script
This ensures that we can get input from the terminal.
2019-04-22 22:25:50 -04:00

26 lines
406 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
cd "$HOME/dotfiles"
git pull
cd -
fi
if [ ! -d "$HOME/dotfiles-local" ]; then
git clone git@github.com:danbee/dotfiles-local.git
else
cd "$HOME/dotfiles-local"
git pull
cd -
fi
env RCRC="$HOME/dotfiles/rcrc" rcup