Skip to content

ITProKyle/dotfiles

Repository files navigation

dotfiles

CI pre-commit renovate

Kyle Finley's dotfiles, managed with chezmoi.

Install them with:

chezmoi init ITProKyle

Once completed, you may need to logout then back in for all changes to take effect as some things are setup in .zprofile. This will always be the case for new initializations but only some updates.

The install.sh script can be used to setup Codespaces, devcontainers, or Linux systems.

Linux

bash -c "$(curl -s https://raw.githubusercontent.com/ITProKyle/dotfiles/master/install.sh)"

Windows

This repository contains paths that include ::. Windows cannot create normal working-tree files with :: in the name. A plain git clone/chezmoi init may download the repository successfully but fail during checkout with an error like:

error: invalid path 'src/dot_local/bin/executable_finley::backup.poetry'
fatal: unable to checkout working tree

To resolve this, use sparse checkout so Git keeps those paths in repository history but does not try to write them to the Windows filesystem.

Clean Clone

$ git clone --no-checkout https://github.com/ITProKyle/dotfiles.git ~/.local/share/chezmoi
$ cd ~/.local/share/chezmoi
$ git sparse-checkout init --no-cone && git sparse-checkout set "/*" "!src/dot_local/bin/*::*" && git checkout -f HEAD && git status --short
Your branch is up to date with 'origin/master'.

The final git status --short command should print no changes.

Recover From A Failed Normal Clone

If you already ran a plain clone and saw the invalid-path checkout error, keep the partially cloned folder and run the following:

$ cd ~/.local/share/chezmoi
$ git config --local core.protectNTFS false && git sparse-checkout init --no-cone && git sparse-checkout set "/*" "!src/dot_local/bin/*::*" && git checkout -f HEAD && git status --short
Your branch is up to date with 'origin/master'.
$ git config --local --unset core.protectNTFS

Git can refuse to update the index because of NTFS path protection while recovering a failed clone. So, you may need to temporarily set core.protectNTFS=false for this repository. This is already included in the commands above as is enabling it once finished.

About

My collection of dotfiles.

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors