windows dotfiles
https://www.atlassian.com/git/tutorials/dotfiles
use nushell to run these commands
- Prior to the installation make sure that your source repository ignores the folder where you'll clone it, so that you don't create weird recursion problems:
'.dotfiles' o> .gitignore
- Now clone your dotfiles into a bare repository in a "dot" folder of your $HOME:
git clone --bare git@github.com:sibouras/windotfiles.git $"($env.USERPROFILE)\\.dotfiles"
- Define the alias in the current shell scope:
alias winconfig = git $"--git-dir=($env.USERPROFILE)\\.dotfiles" $"--work-tree=($env.USERPROFILE)"
- Checkout the actual content from the bare repository to your $HOME:
winconfig checkout
- Set the flag
showUntrackedFiles
tono
on this specific (local) repository:
winconfig config --local status.showUntrackedFiles no