Skip to content

IAreKyleW00t/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

This is a very basic repo for managing and tracking my dotfiles using plain 'ol git. Feel free to use this repo as a reference/example for creating your own dotfiles.

I'll probably move to something like yadm to more easily handle alterate files and bootstrapping.

Installation

For ease of use, we'll create a dotfiles alias for the git command.

alias dotfiles='git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'

First-time setup

If you are settings up dotfiles for the first time, meaning you have NOT set it up on any other computer, then you need to create the initial repo.

git init --bare "$HOME/.dotfiles"
dotfiles config --local status.showUntrackedFiles no

Normal Setup

If you've already setup a repo with your configs and are setting up a new computer, you can do the same things except clone the repo instead.

git clone --bare <git-repo-url> "$HOME/.dotfiles"
dotfiles checkout
dotfiles config --local status.showUntrackedFiles no

Usage

Since this is just a fancy git alias the usage is exactly the same except you must explicitly add new configs that need tracked.

dotfiles add .gitconfig
dotfiles commit -m "An example"
dotfiles push

License

See LICENSE.

Credits