Skip to content

Instantly share code, notes, and snippets.

View charleyslee's full-sized avatar

charley charleyslee

  • sf
  • 18:36 (UTC -04:00)
View GitHub Profile
echo ".cfg" >> .gitignore
git clone --bare https://github.com/charleyslee/dotfiles $HOME/.cfg
function cfg {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
cfg checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else