Skip to content

Instantly share code, notes, and snippets.

@jasonmorganson
Last active August 20, 2020 23:18
Show Gist options
  • Save jasonmorganson/8a6fae35533bba8594a3e05e0bbe2f4d to your computer and use it in GitHub Desktop.
Save jasonmorganson/8a6fae35533bba8594a3e05e0bbe2f4d to your computer and use it in GitHub Desktop.
Setup tools
#!/bin/sh
export NAME="Jason Morganson"
export EMAIL="jason@cherre.com"
if ! command -v chezmoi > /dev/null
then
curl -sfL https://git.io/chezmoi | sh
PATH=./bin:$PATH
fi
if [ -d ~/.local/share/chezmoi/.git ]
then
chezmoi update --apply
else
chezmoi init --apply https://github.com/jasonmorganson/dotfiles.git || chezmoi purge --force
fi
if [ -f ./bin/chezmoi ]
then
rm ./bin/chezmoi
rmdir ./bin
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment