Skip to content

chrishodson/dotfiles

Repository files navigation

dotfiles

Installation

#!/bin/bash
git clone --bare [email protected]:chrishodson/dotfiles.git $HOME/.cfg
config() {
    /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME "$@"
}

if config checkout; then
    echo "Checked out config."
else
    echo "Backing up pre-existing dot files."
    mkdir -p .config-backup
    config checkout 2>&1 | grep -E "^\s+" | awk '{print $1}' | xargs -I{} mv $HOME/{} .config-backup/
    config checkout
fi

config config status.showUntrackedFiles no

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published