Skip to content

mschlr/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the /home of @mschlr

This repository include some of my dotfiles.

Terminal Screenshot

Tracking of Configuration Files

For file-tracking I use the set-up described by StreakyCobra on Hacker News.

Explanation of the dotgit-method

  1. Initialization of the git repository takes place in $HOME.
git init --bare $HOME/.dotfiles
alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotgit config status.showUntrackedFiles no
  1. Next one would add a handful of dotfiles that are of interest to track file changes.
dotgit status
dotgit add .vimrc .profile .tmux.conf .bash_aliases .local/include/*
dotgit commit -m "initial commit"
dotgit push
  1. For fetching the configuration files from the repository on a new machine (migration of the setup), one needs to define the dotgit alias beforehand as such:
alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotgit config status.showUntrackedFiles no

When done. The dotfiles can be cloned into a bare repository referring to the .dotgit directory.

git clone --bare <git-repo-url> $HOME/.dotfiles
dotgit checkout

Config files tracking without additional tools. Just git!


Tasks:

  • Add more configuration files
  • Add automated script for fetching and backups

About

my personal dotfiles on GNU/Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published