Last active
August 20, 2020 23:18
-
-
Save jasonmorganson/8a6fae35533bba8594a3e05e0bbe2f4d to your computer and use it in GitHub Desktop.
Setup tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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