Skip to content

Windows dotfiles managed using a bare git repository.

Notifications You must be signed in to change notification settings

pawelbialaszczyk/dotfiles

Repository files navigation

dotfiles

Windows dotfiles managed using a bare git repository. No extra tooling or symlinks required.

Prerequisites

The PowerShell profile requires the following modules to be installed:

Setup

Clone as a bare repository:

git clone --bare https://github.com/pawelbialaszczyk/dotfiles.git $HOME/.dotfiles

Checkout to restore working tree files:

git --git-dir=$HOME/.dotfiles --work-tree=$HOME checkout

Configure the repository to include the git config:

git --git-dir=$HOME/.dotfiles --work-tree=$HOME config --local include.path ../.dotfilesconfig

Restart PowerShell and from now on use the dotfiles command as an alias for git while working with dotfiles.

In case PowerShell doesn't recognize the dotfiles command, you need to dot source the profile script in your profile file:

echo '. "$HOME\Documents\PowerShell\Profile.ps1"' > $PROFILE

About

Windows dotfiles managed using a bare git repository.

Topics

Resources

Stars

Watchers

Forks