These are dotfiles, preference files, configuration files, shell scripts, etc., tailored for a Microsoft Windows environment.
This repository utilizes a clever technique to manage dotfiles directly within your user profile directory ($env:userprofile) using Git. The core of this system is the sw (sync-windows) alias defined in Documents/Powershell/Profile.ps1.
How it works:
The sw command is an alias for a PowerShell function that invokes git with specific parameters:
--git-dir=$env:userprofile/sync-windows/: Specifies that the Git repository data (the.gitdirectory, essentially) resides within this project's directory located directly under your user profile.--work-tree=$env:userprofile: Sets the working directory for Git to your entire user profile directory.
This means you can run standard Git commands using sw instead of git to track, manage, and synchronize any file within your user profile directory using this repository.
Example Usage:
# Check the status of tracked files in your home directory
sw status
# Add a configuration file to be tracked
sw add .config/my-app/settings.json
# Commit changes
sw commit -m "Update my-app settings"
# Push changes to the remote repository
sw pushThis approach allows for seamless version control and synchronization of my Windows environment configuration.
