Skip to content

Instantly share code, notes, and snippets.

View semoog's full-sized avatar
💭
👍

semo semoog

💭
👍
  • Lendio
  • Salt Lake City, UT
View GitHub Profile
@semoog
semoog / dotfiles
Created June 23, 2019 08:22
Setup dotfiles on a new mac environment
git clone --bare https://github.com/semoog/dotfiles.git $HOME/.dotfiles
function dotfiles {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
dotfiles checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dotfiles.";