diff --git a/README.md b/README.md index daf7521..10ed033 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,7 @@ My dotfiles for both Arch Linux and Windows ```sh git clone --bare gitea@git.theflyingfool.com:theflyingfool/dotfiles.git $HOME/.dot alias dot='/usr/bin/git --git-dir="$HOME/.dot/" --work-tree="$HOME"' -dot checkout -dot config --local status.showUntrackedFiles no + source ~/.zshrc ``` @@ -31,4 +30,20 @@ dot checkout dot add .zshrc dot commit -m "Update .zshrc" dot push +``` + +## Useage on Windows + +### Checking out the repo + +```ps +git clone --bare https://git.theflyingfool.com/theflyingfool/dotfiles.git $HOME/.dot +if (!(Test-Path -Path $PROFILE)) { + # Create the profile + New-Item -Type File -Path $PROFILE -Force +} +"`nfunction dot { & git --git-dir=`"$HOME/.dot/`" --work-tree=`"$HOME`" @args }" | Out-File -Append $PROFILE +. $PROFILE +dot checkout +dot config --local status.showUntrackedFiles no ``` \ No newline at end of file