#!/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-
Notifications
You must be signed in to change notification settings - Fork 0
chrishodson/dotfiles
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published