Skip to content

mwip/.dotfiles

Repository files navigation

My Dotfiles

My current setup

  • Machine 1: Desktop PC with 2 Monitors
  • Machine 2: Lenovo T490s
  • OS: Arch Linux
  • DE/WM: Xmonad
  • Input: Ergodox-EZ

Getting started

as described in this Arch-Wiki page, I use a bare git repository to track my configuration and dotfiles.

To use them clone this repository …

git clone --bare https://github.com/mwip/.dotfiles.git ~/.dotfiles

… and add an alias that serves this specific bare repo:

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

Further, prevent git from showing all untracked files in your home directory:

dotfiles config status.showUntrackedFiles no

Revert your current configuration

Please be careful! This will delete your current configuration!

After cloning the repo, you will see that the files have been deleted. Therefore, you need to revert the files files you want to use. You can do that like this:

dotfiles restore --staged .zshrc
dotfiles diff .zshrc # will show you the differences between your current file and this configuration
dotfiles restore .zshrc

Or, if you want to get the entire set of dotfiles, just checkout the master branch:

dotfiles checkout master

Enjoy!

About

Bare git repostory for my dotflies

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published